Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elenz97 committed Jan 12, 2024
1 parent c1da600 commit 17f5762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiv2/pkg/clients/project/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func TestRESTClient_NewProject_ErrProjectIDNotExists(t *testing.T) {
StorageLimit: &exampleStorageLimitPositive,
})
require.Error(t, err)
require.ErrorIs(t, err, &errors.ErrProjectUnknownResource{})
require.ErrorIs(t, err, &errors.ErrProjectNotFound{})

mockClient.Project.AssertExpectations(t)
}
Expand Down Expand Up @@ -341,7 +341,7 @@ func TestRESTClient_DeleteProject_ErrProjectUnknownResource(t *testing.T) {

err := apiClient.DeleteProject(ctx, "foo")
require.Error(t, err)
require.ErrorIs(t, err, &errors.ErrProjectUnknownResource{})
require.ErrorIs(t, err, &errors.ErrProjectMismatch{})

mockClient.Project.AssertExpectations(t)
}
Expand Down

0 comments on commit 17f5762

Please sign in to comment.