Skip to content

Commit 2485833

Browse files
Abirdcflymythri-garaga
authored andcommitted
fix minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <[email protected]>
1 parent 8680732 commit 2485833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/engine/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ func waitForStopEvents(t *testing.T, stateChangeEvents <-chan statechange.Event,
299299

300300
event := <-stateChangeEvents
301301
if cont := event.(api.ContainerStateChange); cont.Status != apicontainerstatus.ContainerStopped {
302-
t.Fatal("Expected container to stop first")
303302
if verifyExitCode {
304303
assert.Equal(t, *cont.ExitCode, 1, "Exit code should be present")
305304
}
305+
t.Fatal("Expected container to stop first")
306306
}
307307
event = <-stateChangeEvents
308308
assert.Equal(t, event.(api.TaskStateChange).Status, apitaskstatus.TaskStopped, "Expected task to be STOPPED")

0 commit comments

Comments
 (0)