Skip to content

Commit

Permalink
Fix test error assertion to contain correct language
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Sep 30, 2024
1 parent 5ffc8d1 commit 7deca9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/fed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func TestNewTransferJob(t *testing.T) {
require.NoError(t, err)
_, err = tc.NewTransferJob(context.Background(), mockRemoteUrl, "/dest", false, false, client.WithAcquireToken(false))
require.Error(t, err)
assert.Contains(t, err.Error(), "failed to get token for transfer: credential is required for /second/namespace/hello_world.txt but was not discovered")
assert.Contains(t, err.Error(), "failed to get token for transfer: credential is required for")
})

// Test success
Expand Down

0 comments on commit 7deca9e

Please sign in to comment.