Skip to content

Commit

Permalink
[FAB-11959] improve unit tests for confighistory
Browse files Browse the repository at this point in the history
Change-Id: Ie72964f5052dbff3118ca5f71e9b17717f04215a
Signed-off-by: ping40 <norberthu30@gmail.com>
  • Loading branch information
ping40 committed Sep 12, 2018
1 parent 87428c2 commit 3adfdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ledger/confighistory/db_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestEncodeDecodeCompositeKey(t *testing.T) {
}
}

func TesComparetEncodedHight(t *testing.T) {
func TestCompareEncodedHeight(t *testing.T) {
assert.Equal(t, bytes.Compare(encodeBlockNum(20), encodeBlockNum(40)), 1)
assert.Equal(t, bytes.Compare(encodeBlockNum(40), encodeBlockNum(10)), -1)
}
Expand Down

0 comments on commit 3adfdbf

Please sign in to comment.