aboutsummaryrefslogtreecommitdiff
path: root/tests/container_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/container_test.go')
-rw-r--r--tests/container_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/container_test.go b/tests/container_test.go
index 5a0046b..c90a339 100644
--- a/tests/container_test.go
+++ b/tests/container_test.go
@@ -83,3 +83,11 @@ func TestContainerUpdate(t *testing.T) {
})
}
+
+func expectContainerExistence(t *testing.T, c *schwift.Container, expectedExists bool) {
+ t.Helper()
+ c.Invalidate()
+ actualExists, err := c.Exists()
+ expectSuccess(t, err)
+ expectBool(t, actualExists, expectedExists)
+}