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:
Bruno
2024-09-30 09:57:25 -03:00
committed by GitHub
parent ddbf0a05af
commit 6f92fd64ce
3 changed files with 7 additions and 6 deletions
@@ -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)