Skip to content

Commit

Permalink
Add namespace cleanup after clusterwide test (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkralik3 authored Sep 5, 2024
1 parent c2c8e71 commit 910a3e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/tests/ossm/discovery_selectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func TestDiscoverySelectors(t *testing.T) {
app.InstallAndWaitReady(t, app.Sleep(ns.Foo), app.Httpbin(ns.MeshExternal))
t.Cleanup(func() {
app.Uninstall(t, app.Sleep(ns.Foo), app.Httpbin(ns.MeshExternal))
// since the smcp clusterwide mode was used, clean the namespace
t.LogStepf("Delete namespace %s", meshNamespace)
oc.RecreateNamespace(t, meshNamespace)
})

t.LogStep("Confirm that the httpbin and sleep services have been discovered")
Expand Down

0 comments on commit 910a3e1

Please sign in to comment.