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 authored and GitHub committed 2024-09-30 09:57:25 -03:00
1 parent ddbf0a05af
commit 6f92fd64ce
3 files changed
+7 -6

No files matched your search

@@ -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)