Fixed a potential race condition in AbstractSocketStringEchoTest
This commit is contained in:
parent
486eff6378
commit
1d1e88397e
@ -201,12 +201,12 @@ public abstract class AbstractSocketStringEchoTest {
|
|||||||
String m = (String) e.getMessage();
|
String m = (String) e.getMessage();
|
||||||
assertEquals(data[counter], m);
|
assertEquals(data[counter], m);
|
||||||
|
|
||||||
counter ++;
|
|
||||||
|
|
||||||
if (channel.getParent() != null) {
|
if (channel.getParent() != null) {
|
||||||
String delimiter = random.nextBoolean() ? "\r\n" : "\n";
|
String delimiter = random.nextBoolean() ? "\r\n" : "\n";
|
||||||
channel.write(m + delimiter);
|
channel.write(m + delimiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
counter ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user