From 9e3ee2668ab340b108e4623e45355d4b3f78fa17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Wed, 10 Feb 2016 21:17:33 +0100 Subject: [PATCH] Add test case for #1412. --- tests/redis/source/app.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/redis/source/app.d b/tests/redis/source/app.d index f643dd1ed8..bba8e05f81 100644 --- a/tests/redis/source/app.d +++ b/tests/redis/source/app.d @@ -7,6 +7,7 @@ import vibe.core.log; import vibe.db.redis.redis; import core.time; import std.algorithm : sort, equal; +import std.exception : assertThrown; void runTest() { @@ -115,6 +116,10 @@ void runTest() logInfo("LISTEN Stopped"); assert(!sub.isListening); redis.getDatabase(0).publish("SomeChannel", "Messageeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"); + + assertThrown(redis.getDatabase(0).eval("foo!!!", null)); + assert(redis.getDatabase(0).get("test1") == "test1"); + logInfo("Redis Test Succeeded."); }