Permalink
Browse files

also test sync false

  • Loading branch information...
1 parent d835158 commit 3f83b7c3da65d625aac0d52293023de6ae55c991 @erikfrey erikfrey committed Mar 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/request.cpp
View
@@ -25,13 +25,14 @@ BOOST_FIXTURE_TEST_CASE( test_flush, fixtures::basic_request )
BOOST_REQUIRE_EQUAL(request_.queue, "foo+meow");
}
-// test that we get the num bytes for a set correctly
+// test that we get some options for a set correctly
BOOST_FIXTURE_TEST_CASE( test_set, fixtures::basic_request )
{
BOOST_REQUIRE(parser_.parse(request_, string("set foo+meow 0 0 31337\r\n")));
BOOST_REQUIRE_EQUAL(request_.type, darner::request::RT_SET);
BOOST_REQUIRE_EQUAL(request_.queue, "foo+meow");
BOOST_REQUIRE_EQUAL(request_.num_bytes, 31337);
+ BOOST_REQUIRE_EQUAL(request_.set_sync, false);
}
// test that we get the sync flag for a set correctly

0 comments on commit 3f83b7c

Please sign in to comment.