From 5dacfe69e2e964500cec55f3dd6d49a5950ec2bf Mon Sep 17 00:00:00 2001 From: jkrvivian Date: Mon, 18 Mar 2024 20:28:22 +0800 Subject: [PATCH] Fix the expected return HTTP code in Test_CoreAPI_BadRequests --- tools/docker-network/tests/coreapi_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/docker-network/tests/coreapi_test.go b/tools/docker-network/tests/coreapi_test.go index 3778f9466..2851d6a4a 100644 --- a/tools/docker-network/tests/coreapi_test.go +++ b/tools/docker-network/tests/coreapi_test.go @@ -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) }, }, @@ -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) }, },