From 051254ace1d42ece769ff2aa722d805bd5a723e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 18 Jun 2016 10:00:20 +0200 Subject: [PATCH] Fix test compilation. --- tests/vibe.core.net.1441/source/app.d | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/vibe.core.net.1441/source/app.d b/tests/vibe.core.net.1441/source/app.d index 86f2b29..412bbfd 100644 --- a/tests/vibe.core.net.1441/source/app.d +++ b/tests/vibe.core.net.1441/source/app.d @@ -1,14 +1,19 @@ import vibe.core.core; import vibe.core.net; import core.time : msecs; +import std.string : representation; void main() { import vibe.core.log; bool done = false; - listenTCP(11375,(conn){ - conn.write("foo"); - conn.close(); + listenTCP(11375, (conn) { + try { + conn.write("foo".representation); + conn.close(); + } catch (Exception e) { + assert(false, e.msg); + } done = true; });