fix tests

This commit is contained in:
Megan Marsh 2019-03-29 11:37:23 -07:00
parent 6407a579f0
commit af06334114
1 changed files with 5 additions and 5 deletions

View File

@ -52,16 +52,16 @@ func TestStepRun(t *testing.T) {
}
// Verify we haven't called stop yet
if driver.StopCalled {
if driver.KillCalled {
t.Fatal("should not have stopped")
}
// Cleanup
step.Cleanup(state)
if !driver.StopCalled {
if !driver.KillCalled {
t.Fatal("should've stopped")
}
if driver.StopID != id {
if driver.KillID != id {
t.Fatalf("bad: %#v", driver.StopID)
}
}
@ -85,13 +85,13 @@ func TestStepRun_error(t *testing.T) {
}
// Verify we haven't called stop yet
if driver.StopCalled {
if driver.KillCalled {
t.Fatal("should not have stopped")
}
// Cleanup
step.Cleanup(state)
if driver.StopCalled {
if driver.KillCalled {
t.Fatal("should not have stopped")
}
}