Skip to content

Commit

Permalink
cleanup service after tests completes (#15147)
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso authored Apr 23, 2024
1 parent 076cd07 commit e4d8139
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/conformance/runtime/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func TestMustNotContainerConstraints(t *testing.T) {
Service: test.ObjectNameForTest(t),
Image: test.Runtime,
}
test.EnsureTearDown(t, clients, &names)

if svc, err := testv1.CreateService(t, clients, names, tc.options); err == nil {
t.Errorf("CreateService = %v, want: error", spew.Sdump(svc))
}
Expand Down Expand Up @@ -183,6 +185,8 @@ func TestShouldNotContainerConstraints(t *testing.T) {
Image: test.Runtime,
}

test.EnsureTearDown(t, clients, &names)

svc, err := testv1.CreateService(t, clients, names, tc.options)
if err == nil && tc.assertIfNoError == nil {
t.Errorf("CreateService = %v, want: error", spew.Sdump(svc))
Expand Down

0 comments on commit e4d8139

Please sign in to comment.