Fix test compilation.
This commit is contained in:
parent
4c6f26bd00
commit
051254ace1
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue