Convert ExitStatus
to use fn to get details
Instead of requiring callers to read the struct fields to check for an error, provide the exit results via a function instead which is more natural. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -232,7 +232,8 @@ func TestDaemonRestart(t *testing.T) {
|
||||
}
|
||||
|
||||
status := <-statusC
|
||||
if status.Err == nil {
|
||||
_, _, err = status.Result()
|
||||
if err == nil {
|
||||
t.Errorf(`first task.Wait() should have failed with "transport is closing"`)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user