Fix test compilation.

This commit is contained in:
Sönke Ludwig 2016-06-18 10:00:20 +02:00
parent 4c6f26bd00
commit 051254ace1

View file

@ -1,14 +1,19 @@
import vibe.core.core; import vibe.core.core;
import vibe.core.net; import vibe.core.net;
import core.time : msecs; import core.time : msecs;
import std.string : representation;
void main() void main()
{ {
import vibe.core.log; import vibe.core.log;
bool done = false; bool done = false;
listenTCP(11375,(conn){ listenTCP(11375, (conn) {
conn.write("foo"); try {
conn.write("foo".representation);
conn.close(); conn.close();
} catch (Exception e) {
assert(false, e.msg);
}
done = true; done = true;
}); });