Skip to content

Commit ee81a3d

Browse files
committed
[FAB-12018] fix wrong description
Change-Id: I821e6f09c2ee251de5e92fa90d95bc8706e0ced8 Signed-off-by: ping40 <norberthu30@gmail.com>
1 parent a9ad62a commit ee81a3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/ledger/kvledger/txmgmt/statedb/statedb_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ func TestPutGetDeleteExistsGetUpdates(t *testing.T) {
8787

8888
//Delete the above inserted <k,v> pair
8989
batch.Delete("ns1", "key2", version.NewHeight(1, 2))
90-
//Exists() should return false as key2 is deleted
90+
//Exists() should return true after deleting key2
91+
//Exists() should return true iff the key has action(Put/Delete) in this batch
9192
actualResult = batch.Exists("ns1", "key2")
9293
expectedResult = true
9394
testutil.AssertEquals(t, actualResult, expectedResult)

0 commit comments

Comments
 (0)