Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelosalloum committed Nov 23, 2024
1 parent a6b5b29 commit ae51075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/integrationtests/server_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func Test_StartDisbursement(t *testing.T) {
httpClientMock.On("Do", mock.AnythingOfType("*http.Request")).Return(response, nil).Once()

err := sa.StartDisbursement(ctx, authToken, mockDisbursementID, reqBody)
require.EqualError(t, err, "error trying to start the disbursement on the server API")
require.EqualError(t, err, "error trying to start the disbursement on the server API (statusCode=400)")

httpClientMock.AssertExpectations(t)
})
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/network_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func Test_GetNetworkTypeFromNetworkPassphrase(t *testing.T) {
{
networkPassphrase: "invalid",
expectedNetworkType: "",
expectedError: "invalid network passphrase provided",
expectedError: `invalid network passphrase provided "invalid"`,
},
}

Expand Down

0 comments on commit ae51075

Please sign in to comment.