Skip to content

Commit

Permalink
Fixing multipleNamespaceTest bug - Missing expect statement in test (#…
Browse files Browse the repository at this point in the history
…3983)

* Fixing multipleNamespaceTest bug - No expect statement in test
* adding changelog

Signed-off-by: Jai Subash Devmane <[email protected]>
  • Loading branch information
jaidevmane authored Jul 27, 2021
1 parent 79b7ed1 commit 36b1aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/3983-jaidevmane
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixing multipleNamespaceTest bug - Missing expect statement in test
8 changes: 4 additions & 4 deletions test/e2e/multiple_namespaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ var _ = Describe("[Basic] Backup/restore of 2 namespaces", func() {
backupName := "backup-" + uuidgen.String()
restoreName := "restore-" + uuidgen.String()
fiveMinTimeout, _ := context.WithTimeout(context.Background(), 5*time.Minute)
RunMultipleNamespaceTest(fiveMinTimeout, client, "nstest-"+uuidgen.String(), 2,
backupName, restoreName)
Expect(RunMultipleNamespaceTest(fiveMinTimeout, client, "nstest-"+uuidgen.String(), 2,
backupName, restoreName)).To(Succeed(), "Failed to successfully backup and restore multiple namespaces")
})
})
})
Expand Down Expand Up @@ -84,8 +84,8 @@ var _ = Describe("[Scale] Backup/restore of 2500 namespaces", func() {
backupName := "backup-" + uuidgen.String()
restoreName := "restore-" + uuidgen.String()
oneHourTimeout, _ := context.WithTimeout(context.Background(), 1*time.Hour)
RunMultipleNamespaceTest(oneHourTimeout, client, "nstest-"+uuidgen.String(), 2500,
backupName, restoreName)
Expect(RunMultipleNamespaceTest(oneHourTimeout, client, "nstest-"+uuidgen.String(), 2500,
backupName, restoreName)).To(Succeed(), "Failed to successfully backup and restore multiple namespaces")
})
})
})
Expand Down

0 comments on commit 36b1aaa

Please sign in to comment.