Skip to content

Commit f978207

Browse files
committed
more fixes to provisioning test
1 parent feb63df commit f978207

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

provisioner/terraform/provision_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,14 @@ func TestProvision_Cancel(t *testing.T) {
253253

254254
if log := msg.GetLog(); log != nil {
255255
gotLog = append(gotLog, log.Output)
256-
}
257-
if c := msg.GetPlan(); c != nil {
256+
} else if c := msg.GetPlan(); c != nil {
257+
require.Contains(t, c.Error, "exit status 1")
258+
break
259+
} else if c := msg.GetInit(); c != nil {
258260
require.Contains(t, c.Error, "exit status 1")
259261
break
262+
} else {
263+
t.Fatalf("unexpected message: %v", msg)
260264
}
261265
}
262266
require.Equal(t, tt.wantLog, gotLog)

0 commit comments

Comments
 (0)