Skip to content

Commit 0165a95

Browse files
committed
Fix assertion in otel shutdown test
1 parent fa2a03d commit 0165a95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/integration/ess/otel_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ service:
140140

141141
// stop the collector and check that it emitted logs indicating a graceful shutdown
142142
require.NoError(t, cmd.Process.Signal(os.Interrupt))
143-
require.NoError(t, cmd.Wait())
143+
if waitErr := cmd.Wait(); waitErr != nil {
144+
assert.ErrorContains(t, waitErr, "signal: interrupt")
145+
}
144146
assert.Contains(t, output.String(), "Shutdown complete")
145147
}
146148

0 commit comments

Comments
 (0)