Skip to content

Commit

Permalink
Always cancel context in integration tests even on wrong exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Apr 8, 2022
1 parent bed3354 commit b710000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func newGlobalTestState(t *testing.T) *globalTestState {
}

defaultOsExitHandle := func(exitCode int) {
require.Equal(t, ts.expectedExitCode, exitCode)
cancel()
require.Equal(t, ts.expectedExitCode, exitCode)
}

outMutex := &sync.Mutex{}
Expand Down

0 comments on commit b710000

Please sign in to comment.