Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado Ferrero <[email protected]>
  • Loading branch information
JorTurFer authored Jan 17, 2024
1 parent f73c7aa commit c3bb6ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ func TestScaler(t *testing.T) {
t.Log("--- setting up ---")

ampClient := createAMPClient()
workspaceOutput, _ := ampClient.CreateWorkspace(context.Background(), nil)
workspaceOutput, err := ampClient.CreateWorkspace(context.Background(), nil)
assert.Error(t, err, "aws prometheus workspace creation has failed")
workspaceID = *workspaceOutput.WorkspaceId

kc := GetKubernetesClient(t)
Expand All @@ -156,7 +157,7 @@ func TestScaler(t *testing.T) {
WorkspaceId: &workspaceID,
}
input := &deleteWSInput
_, err := ampClient.DeleteWorkspace(context.Background(), input)
_, err = ampClient.DeleteWorkspace(context.Background(), input)
if err != nil {
t.Log("Unable to delete AMP workspace", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func TestScaler(t *testing.T) {
t.Log("--- setting up ---")

ampClient := createAMPClient()
workspaceOutput, _ := ampClient.CreateWorkspace(context.Background(), nil)
workspaceOutput, err := ampClient.CreateWorkspace(context.Background(), nil)
assert.Error(t, err, "aws prometheus workspace creation has failed")
workspaceID = *workspaceOutput.WorkspaceId

kc := GetKubernetesClient(t)
Expand All @@ -141,7 +142,7 @@ func TestScaler(t *testing.T) {
WorkspaceId: &workspaceID,
}
input := &deleteWSInput
_, err := ampClient.DeleteWorkspace(context.Background(), input)
_, err = ampClient.DeleteWorkspace(context.Background(), input)
if err != nil {
t.Log("Unable to delete AMP workspace", err)
}
Expand Down

0 comments on commit c3bb6ab

Please sign in to comment.