Cloud migrations: add more context to errors (#93814)
* Cloud migrations: add more context to errors * calls to assert.ErrorIs was passing arguments in the wrong order
This commit is contained in:
@@ -58,7 +58,7 @@ func Test_CreateGetAndDeleteToken(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
_, err = s.GetToken(context.Background())
|
||||
assert.ErrorIs(t, cloudmigration.ErrTokenNotFound, err)
|
||||
assert.ErrorIs(t, err, cloudmigration.ErrTokenNotFound)
|
||||
|
||||
cm := cloudmigration.CloudMigrationSession{}
|
||||
err = s.ValidateToken(context.Background(), cm)
|
||||
|
||||
Reference in New Issue
Block a user