Skip to content

Commit

Permalink
Check the package name on core/ledger/kvledger UT (hyperledger#2987)
Browse files Browse the repository at this point in the history
Check the package name not local file name including "fabric/"
on core/ledger/kvledger unit test

core/ledger/kvledger unit-test has been failed on a directory that not "fabric".

Signed-off-by: Justin Yang <justin.yang@themedium.io>
  • Loading branch information
justin-themedium committed Oct 21, 2021
1 parent 2ede756 commit 2718ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/ledger/kvledger/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func TestGenerateSnapshotErrors(t *testing.T) {
require.Error(t, err)
errStackTrace := fmt.Sprintf("%+v", err)
require.Contains(t, errStackTrace, "internal leveldb error while obtaining db iterator")
require.Contains(t, errStackTrace, "fabric/common/ledger/blkstorage/blockindex.go")
require.Contains(t, errStackTrace, "github.com/hyperledger/fabric/common/ledger/blkstorage")
})

t.Run("config history mgr returns error", func(t *testing.T) {
Expand All @@ -578,7 +578,7 @@ func TestGenerateSnapshotErrors(t *testing.T) {
require.Error(t, err)
errStackTrace := fmt.Sprintf("%+v", err)
require.Contains(t, errStackTrace, "internal leveldb error while obtaining db iterator")
require.Contains(t, errStackTrace, "fabric/core/ledger/confighistory/mgr.go")
require.Contains(t, errStackTrace, "github.com/hyperledger/fabric/core/ledger/confighistory")
})

t.Run("statedb returns error", func(t *testing.T) {
Expand Down

0 comments on commit 2718ac9

Please sign in to comment.