From 3adfdbf5da4470e4458ba364302c3d7b0e09e293 Mon Sep 17 00:00:00 2001 From: ping40 Date: Wed, 12 Sep 2018 16:31:47 +0800 Subject: [PATCH] [FAB-11959] improve unit tests for confighistory Change-Id: Ie72964f5052dbff3118ca5f71e9b17717f04215a Signed-off-by: ping40 --- core/ledger/confighistory/db_helper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ledger/confighistory/db_helper_test.go b/core/ledger/confighistory/db_helper_test.go index 88ec00400f0..d953fbeda29 100644 --- a/core/ledger/confighistory/db_helper_test.go +++ b/core/ledger/confighistory/db_helper_test.go @@ -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) }