Skip to content

Commit

Permalink
Fix the expected return HTTP code in Test_CoreAPI_BadRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Mar 18, 2024
1 parent 40a74e0 commit 5dacfe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/docker-network/tests/coreapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func Test_CoreAPI_BadRequests(t *testing.T) {
txID := tpkg.RandTransactionID()
resp, err := d.wallet.Clients[nodeAlias].TransactionIncludedBlock(context.Background(), txID)
require.Error(t, err)
require.True(t, isStatusCode(err, http.StatusInternalServerError))
require.True(t, isStatusCode(err, http.StatusBadRequest))
require.Nil(t, resp)
},
},
Expand All @@ -583,7 +583,7 @@ func Test_CoreAPI_BadRequests(t *testing.T) {

resp, err := d.wallet.Clients[nodeAlias].TransactionIncludedBlockMetadata(context.Background(), txID)
require.Error(t, err)
require.True(t, isStatusCode(err, http.StatusInternalServerError))
require.True(t, isStatusCode(err, http.StatusBadRequest))
require.Nil(t, resp)
},
},
Expand Down

0 comments on commit 5dacfe6

Please sign in to comment.