Fix TCP test compilation.
This commit is contained in:
parent
32f4170b8b
commit
b4157e2ff6
|
@ -7,6 +7,7 @@ module test;
|
||||||
import eventcore.core;
|
import eventcore.core;
|
||||||
import eventcore.socket;
|
import eventcore.socket;
|
||||||
import std.socket : InternetAddress;
|
import std.socket : InternetAddress;
|
||||||
|
import core.time : Duration;
|
||||||
|
|
||||||
ubyte[256] s_rbuf;
|
ubyte[256] s_rbuf;
|
||||||
bool s_done;
|
bool s_done;
|
||||||
|
@ -59,7 +60,7 @@ void main()
|
||||||
})(baddr);
|
})(baddr);
|
||||||
|
|
||||||
ExitReason er;
|
ExitReason er;
|
||||||
do er = eventDriver.core.processEvents();
|
do er = eventDriver.core.processEvents(Duration.max);
|
||||||
while (er == ExitReason.idle);
|
while (er == ExitReason.idle);
|
||||||
//assert(er == ExitReason.outOfWaiters); // FIXME: see above
|
//assert(er == ExitReason.outOfWaiters); // FIXME: see above
|
||||||
assert(s_done);
|
assert(s_done);
|
||||||
|
|
Loading…
Reference in a new issue