Skip to content

Commit 324b02c

Browse files
author
Chris Elder
committed
[FAB-6780] Correct typo in statecouchdb_test.go
The last test in TestUtilityFunctions() has an incorrect comment. It states "// ValidateKey should return nil for a valid key" it should say "// ValidateKey should return error for an invalid key" Change-Id: Ie7ccf954083d5f3eeb0f879664efb4afb5717b68 Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
1 parent 329e392 commit 324b02c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func TestUtilityFunctions(t *testing.T) {
171171
err = db.ValidateKey("testKey")
172172
testutil.AssertNil(t, err)
173173

174-
// ValidateKey should return nil for a valid key
174+
// ValidateKey should return an error for an invalid key
175175
err = db.ValidateKey(string([]byte{0xff, 0xfe, 0xfd}))
176176
testutil.AssertError(t, err, "ValidateKey should have thrown an error for an invalid utf-8 string")
177177

0 commit comments

Comments
 (0)