Skip to content

Commit

Permalink
Lookup Test: call unset before set
Browse files Browse the repository at this point in the history
  • Loading branch information
pburow committed Nov 6, 2017
1 parent 0ea6f29 commit 8bfe686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/dict-rados/it_test_dict_rados.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ TEST_F(DictTest, lookup) {
ASSERT_NE(target, nullptr);

struct dict_transaction_context *ctx = dict_transaction_begin(target);
dict_unset(ctx, OMAP_KEY_PRIVATE);
dict_unset(ctx, OMAP_KEY_SHARED);
dict_set(ctx, OMAP_KEY_PRIVATE, OMAP_VALUE_PRIVATE);
dict_set(ctx, OMAP_KEY_SHARED, OMAP_VALUE_SHARED);
ASSERT_EQ(dict_transaction_commit(&ctx, &error_r), 1);
Expand Down Expand Up @@ -264,6 +266,8 @@ TEST_F(DictTest, transaction_commit_async) {

struct dict_transaction_context *ctx = dict_transaction_begin(target);

dict_unset(ctx, OMAP_KEY_PRIVATE);
dict_unset(ctx, OMAP_KEY_SHARED);
dict_set(ctx, OMAP_KEY_PRIVATE, OMAP_VALUE_PRIVATE);
dict_set(ctx, OMAP_KEY_SHARED, OMAP_VALUE_SHARED);

Expand Down

0 comments on commit 8bfe686

Please sign in to comment.