ResourceStore: update tests to all run
We need to specifically register "Describe" functions,
but ginkgo doesn't allow us to register multiple ones.
Wrap different functionality in different Contexts so they all run.
@@ -34,6 +34,7 @@ var _ = t.Describe("ResourceStore", func() {
cleanupFuncs []func()
e *entry
)
+ Context("no timeout", func() {
BeforeEach(func() {
sut = resourcestore.New()
cleanupFuncs = make([]func(), 0)
@@ -73,14 +74,7 @@ var _ = t.Describe("ResourceStore", func() {
Expect(e.created).To(BeTrue())
})
})
-
-var _ = t.Describe("ResourceStore and timeout", func() {
- // Setup the test
- var (
- sut *resourcestore.ResourceStore
- cleanupFuncs []func()
- e *entry
- )
+ Context("with timeout", func() {
BeforeEach(func() {
cleanupFuncs = make([]func(), 0)
e = &entry{
@@ -112,3 +106,4 @@ var _ = t.Describe("ResourceStore and timeout", func() {
Expect(id).To(BeEmpty())
})
})
+})
