Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Gaudreault <[email protected]>
  • Loading branch information
agaudreault committed Dec 18, 2024
1 parent 0a72dd8 commit 35d6ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/e2e/app_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ func TestComparisonFailsIfInClusterDisabled(t *testing.T) {
When().
CreateApp().
Refresh(RefreshTypeNormal).
Sync().
Then().
Expect(Success("")).
Expect(HealthIs(health.HealthStatusHealthy)).
Expand All @@ -721,7 +722,7 @@ func TestComparisonFailsIfInClusterDisabled(t *testing.T) {
Expect(Success("")).
Expect(HealthIs(health.HealthStatusUnknown)).
Expect(SyncStatusIs(SyncStatusCodeUnknown)).
Expect(Condition(ApplicationConditionInvalidSpecError, fmt.Sprintf("cluster \"%s\" is disabled", KubernetesInternalAPIServerAddr)))
Expect(Condition(ApplicationConditionInvalidSpecError, fmt.Sprintf("cluster %q is disabled", KubernetesInternalAPIServerAddr)))
}

func TestCannotSetInvalidPath(t *testing.T) {
Expand Down Expand Up @@ -2190,7 +2191,7 @@ func TestCreateAppWithInClusterDisabled(t *testing.T) {
IgnoreErrors().
CreateApp().
Then().
Expect(Error("", fmt.Sprintf("cluster \"%s\" is disabled", KubernetesInternalAPIServerAddr)))
Expect(Error("", fmt.Sprintf("cluster %q is disabled", KubernetesInternalAPIServerAddr)))
}

func TestListResource(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/fixture/app/expectation.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func Error(message, err string, matchers ...func(string, string) bool) Expectati
return failed, fmt.Sprintf("output does not contain '%s'", message)
}
if !match(c.actions.lastError.Error(), err) {
return failed, fmt.Sprintf("error does not contain '%s'", message)
return failed, fmt.Sprintf("error does not contain '%s'", err)
}
return succeeded, fmt.Sprintf("error '%s'", message)
}
Expand Down

0 comments on commit 35d6ec0

Please sign in to comment.