Skip to content

Commit

Permalink
Assert waitForEvent is not -1
Browse files Browse the repository at this point in the history
  • Loading branch information
bear101 committed Feb 14, 2024
1 parent a8ddc6f commit c97588d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.junit.rules.Stopwatch;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

import java.util.Vector;
import java.io.FileOutputStream;
Expand Down Expand Up @@ -424,6 +425,7 @@ protected static boolean waitForEvent(TeamTalkBase ttclient, int nClientEvent,
// ClientEvent.CLIENTEVENT_NONE' which is default in
// TTMessage. So set to something unsupported.
tmp.nClientEvent = -1;
assertNotEquals("ClientEvent -1 is reserved", tmp.nClientEvent, nClientEvent);

gotmsg = ttclient.getMessage(tmp, 0);

Expand Down

0 comments on commit c97588d

Please sign in to comment.