@@ -96,7 +96,7 @@ func TestQueryGetChainInfo(t *testing.T) {
9696
9797 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
9898 if err != nil {
99- t .Fatalf (err .Error ())
99+ t .Fatal (err .Error ())
100100 }
101101 defer cleanup ()
102102
@@ -128,7 +128,7 @@ func TestQueryGetTransactionByID(t *testing.T) {
128128
129129 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
130130 if err != nil {
131- t .Fatalf (err .Error ())
131+ t .Fatal (err .Error ())
132132 }
133133 defer cleanup ()
134134
@@ -164,7 +164,7 @@ func TestQueryGetBlockByNumber(t *testing.T) {
164164
165165 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
166166 if err != nil {
167- t .Fatalf (err .Error ())
167+ t .Fatal (err .Error ())
168168 }
169169 defer cleanup ()
170170
@@ -201,7 +201,7 @@ func TestQueryGetBlockByHash(t *testing.T) {
201201
202202 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
203203 if err != nil {
204- t .Fatalf (err .Error ())
204+ t .Fatal (err .Error ())
205205 }
206206 defer cleanup ()
207207
@@ -228,7 +228,7 @@ func TestQueryGetBlockByTxID(t *testing.T) {
228228
229229 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
230230 if err != nil {
231- t .Fatalf (err .Error ())
231+ t .Fatal (err .Error ())
232232 }
233233 defer cleanup ()
234234
@@ -290,7 +290,7 @@ func TestFailingAccessControl(t *testing.T) {
290290
291291 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
292292 if err != nil {
293- t .Fatalf (err .Error ())
293+ t .Fatal (err .Error ())
294294 }
295295 defer cleanup ()
296296
@@ -415,7 +415,7 @@ func TestQueryNonexistentFunction(t *testing.T) {
415415
416416 mockStub , lq , _ , cleanup , err := setupTestLedger (t , chainid , path )
417417 if err != nil {
418- t .Fatalf (err .Error ())
418+ t .Fatal (err .Error ())
419419 }
420420 defer cleanup ()
421421
@@ -436,7 +436,7 @@ func TestQueryGeneratedBlock(t *testing.T) {
436436
437437 mockStub , lq , p , cleanup , err := setupTestLedger (t , chainid , path )
438438 if err != nil {
439- t .Fatalf (err .Error ())
439+ t .Fatal (err .Error ())
440440 }
441441 defer cleanup ()
442442
@@ -471,7 +471,7 @@ func TestQueryGeneratedBlock(t *testing.T) {
471471 }
472472 chdr , err := protoutil .UnmarshalChannelHeader (payload .Header .ChannelHeader )
473473 if err != nil {
474- t .Fatalf (err .Error ())
474+ t .Fatal (err .Error ())
475475 }
476476 if common .HeaderType (chdr .Type ) == common .HeaderType_ENDORSER_TRANSACTION {
477477 args = [][]byte {[]byte (GetBlockByTxID ), []byte (chainid ), []byte (chdr .TxId )}
0 commit comments