Skip to content

Commit

Permalink
Fix e2e tests expecting text (not JSON) logging
Browse files Browse the repository at this point in the history
Signed-off-by: Teddy Wahle <[email protected]>
  • Loading branch information
teddy-wahle committed Jan 31, 2025
1 parent 2ac0f23 commit c63d1e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e/app_management_ns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ func TestNamespacedSyncResourceByLabel(t *testing.T) {
Expect(SyncStatusIs(SyncStatusCodeSynced)).
And(func(_ *Application) {
_, err := fixture.RunCli("app", "sync", ctx.AppQualifiedName(), "--label", "this-label=does-not-exist")
assert.ErrorContains(t, err, "level=fatal")
assert.ErrorContains(t, err, "\"level\":\"fatal\"")
})
}

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/app_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ func TestSyncResourceByLabel(t *testing.T) {
Expect(SyncStatusIs(SyncStatusCodeSynced)).
And(func(app *Application) {
_, err := fixture.RunCli("app", "sync", app.Name, "--label", "this-label=does-not-exist")
assert.ErrorContains(t, err, "level=fatal")
assert.ErrorContains(t, err, "\"level\":\"fatal\"")
})
}

Expand All @@ -1392,7 +1392,7 @@ func TestSyncResourceByProject(t *testing.T) {
Expect(SyncStatusIs(SyncStatusCodeSynced)).
And(func(app *Application) {
_, err := fixture.RunCli("app", "sync", app.Name, "--project", "this-project-does-not-exist")
assert.ErrorContains(t, err, "level=fatal")
assert.ErrorContains(t, err, "\"level\":\"fatal\"")
})
}

Expand Down

0 comments on commit c63d1e9

Please sign in to comment.