Skip to content

Commit

Permalink
Add test case for #1412.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 10, 2016
1 parent 7a7297b commit 9e3ee26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/redis/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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.");
}

Expand Down

0 comments on commit 9e3ee26

Please sign in to comment.