Skip to content

Commit c3d8da8

Browse files
Chris Eldermastersingh24
authored andcommitted
[FAB-12159] Statecouchdb TestDebugFunctions error
The TestDebugFunctions() has an error which causes a meaningless test. No error is thrown, but the test needs to be corrected. Change-Id: I49e83c9a8751f711d7690cd556d5b4f9604246bc Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
1 parent d99d940 commit c3d8da8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ func TestDebugFunctions(t *testing.T) {
243243
// initialize a key list
244244
loadKeys := []*statedb.CompositeKey{}
245245
//create a composite key and add to the key list
246-
compositeKey := statedb.CompositeKey{Namespace: "ns", Key: "key3"}
247-
loadKeys = append(loadKeys, &compositeKey)
248-
compositeKey = statedb.CompositeKey{Namespace: "ns", Key: "key4"}
249-
loadKeys = append(loadKeys, &compositeKey)
250-
assert.Equal(t, "[ns,key4],[ns,key4]", printCompositeKeys(loadKeys))
246+
compositeKey3 := statedb.CompositeKey{Namespace: "ns", Key: "key3"}
247+
loadKeys = append(loadKeys, &compositeKey3)
248+
compositeKey4 := statedb.CompositeKey{Namespace: "ns", Key: "key4"}
249+
loadKeys = append(loadKeys, &compositeKey4)
250+
assert.Equal(t, "[ns,key3],[ns,key4]", printCompositeKeys(loadKeys))
251251

252252
}
253253

0 commit comments

Comments
 (0)