Skip to content

Commit

Permalink
[FAB-6780] Correct typo in statecouchdb_test.go
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Elder committed Oct 26, 2017
1 parent 329e392 commit 324b02c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestUtilityFunctions(t *testing.T) {
err = db.ValidateKey("testKey")
testutil.AssertNil(t, err)

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

Expand Down

0 comments on commit 324b02c

Please sign in to comment.