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();
|
||||
assertEquals(data[counter], m);
|
||||
|
||||
counter ++;
|
||||
|
||||
if (channel.getParent() != null) {
|
||||
String delimiter = random.nextBoolean() ? "\r\n" : "\n";
|
||||
channel.write(m + delimiter);
|
||||
}
|
||||
|
||||
counter ++;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user