Skip to content

Commit

Permalink
Update operateMapRemoveByKeyListForNonExistingKey() test with new exp…
Browse files Browse the repository at this point in the history
…ected message.
  • Loading branch information
BrianNichols committed Feb 21, 2018
1 parent 6f9e7ad commit a4e120c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/src/com/aerospike/test/sync/basic/TestOperateMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,12 @@ public void operateMapRemoveByKeyListForNonExistingKey() throws Exception {
Key key = new Key(args.namespace, args.set, "opmkey13");

expectedException.expect(AerospikeException.class);
//TODO: as soon as aerospike server 3.16.0.1 is release change this check to not found error
expectedException.expectMessage("Error Code 12: Bin type error");

// Server versions < 3.16.0.1 receive a bin type error.
//expectedException.expectMessage("Error Code 12: Bin type error");

// Server versions >= 3.16.0.1 receive a key not found error.
expectedException.expectMessage("Error Code 2: Key not found");

client.operate(null, key,
MapOperation.removeByKeyList(binName, singletonList(Value.get("key-1")), MapReturnType.VALUE));
Expand Down

0 comments on commit a4e120c

Please sign in to comment.