Skip to content

Commit

Permalink
Merge pull request #846 from iotaledger/fix/docker-test
Browse files Browse the repository at this point in the history
Fix the expected return HTTP code in Test_CoreAPI_BadRequests
  • Loading branch information
muXxer authored Mar 18, 2024
2 parents 5d7779e + 5dacfe6 commit 1287c83
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 1287c83

Please sign in to comment.