Permalink
Browse files

NCBC-212: Don't swallow StatusCode in ExecuteRemove

Change-Id: I003574744a051d78385ad13d8053aa9bb650438f
Reviewed-on: http://review.couchbase.org/24312
Reviewed-by: Saakshi Manocha <saakshi.manocha@globallogic.com>
Tested-by: Saakshi Manocha <saakshi.manocha@globallogic.com>
  • Loading branch information...
1 parent 66df655 commit dcf9d0b3b98593517e862e3499afc67ae09cefc5 @johnzablocki johnzablocki committed with saakshimanocha Jan 30, 2013
Showing with 3 additions and 1 deletion.
  1. +1 −1 lib/EnyimMemcached
  2. +2 −0 src/Couchbase.Tests/CouchbaseClientRemoveTests.cs
@@ -6,6 +6,7 @@
using Couchbase.Configuration;
using Enyim.Caching.Memcached;
using Couchbase.Constants;
+using Enyim.Caching.Memcached.Results.StatusCodes;
namespace Couchbase.Tests
{
@@ -46,6 +47,7 @@ public void When_Removing_An_Invalid_Key_Result_Is_Not_Successful()
var removeResult = _Client.ExecuteRemove(key);
Assert.That(removeResult.Success, Is.False, "Success was true");
+ Assert.That(removeResult.StatusCode, Is.EqualTo((int)StatusCodeEnums.NotFound), "Status code was not NotFound");
}
[Test]

0 comments on commit dcf9d0b

Please sign in to comment.