Skip to content

Commit 5eac4d2

Browse files
committed
[FAB-3656] Add an error check
[FAB-3656] There is an error left unchecked, add an error check here can prevent potential obscure Change-Id: I3f4ad435d496c1f91fc42ca868319e8bf1bab769 Signed-off-by: dong pan <[email protected]>
1 parent f2e94b3 commit 5eac4d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/configtx/test/helper_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ func TestMakeGenesisBlockFromMSPs(t *testing.T) {
5252
ordererOrgID := "TestOrdererOrg"
5353
appOrgID := "TestAppOrg"
5454
appMSPConf, err := msp.GetLocalMspConfig(mspDir, nil, appOrgID)
55+
if err != nil {
56+
t.Fatalf("Error making genesis block from MSPs: %s", err)
57+
}
5558
ordererMSPConf, err := msp.GetLocalMspConfig(mspDir, nil, ordererOrgID)
5659
if err != nil {
5760
t.Fatalf("Error making genesis block from MSPs: %s", err)

0 commit comments

Comments
 (0)