Wait for terminating namespaces deletion

This commit is contained in:
Wojciech Tyczynski
2015-06-22 13:47:05 +02:00
parent 4a6e7b5053
commit 47b6e6a84e
3 changed files with 40 additions and 0 deletions

View File

@@ -86,6 +86,13 @@ var _ = Describe("Density", func() {
expectNoError(err)
minionCount = len(minions.Items)
Expect(minionCount).NotTo(BeZero())
// Terminating a namespace (deleting the remaining objects from it - which
// generally means events) can affect the current run. Thus we wait for all
// terminating namespace to be finally deleted before starting this test.
err = deleteTestingNS(c)
expectNoError(err)
nsForTesting, err := createTestingNS("density", c)
ns = nsForTesting.Name
expectNoError(err)