Skip to content

Commit

Permalink
Reduce log spam in TestOrganizationProvidedToken
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 19, 2023
1 parent 9e95021 commit 9ab7e6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion end-to-end/organization_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ func TestOrganizationProvidedToken(t *testing.T) {
name := registerFromTestImage(t, ctx)
d := wsl.NewDistro(ctx, name)

defer logWslProServiceJournal(t, ctx, d)
defer func() {
if t.Failed() {
logWslProServiceJournal(t, ctx, d)
}
}()

out, err := d.Command(ctx, "exit 0").CombinedOutput()
require.NoErrorf(t, err, "Setup: could not wake distro up: %v. %s", err, out)
Expand Down

0 comments on commit 9ab7e6f

Please sign in to comment.