Remove "should cleanup in parallel" test
The cleanup does not run in parallel any more which means that this test
blocks forever.
@@ -79,27 +79,4 @@ var _ = t.Describe("ResourceCleaner", func() {
Expect(err).NotTo(BeNil())
Expect(failureCnt).To(Equal(3))
})
-
- It("should run in parallel", func() {
- // Given
- sut := resourcestore.NewResourceCleaner()
- testChan := make(chan bool, 1)
- succ := false
- sut.Add(context.Background(), "test1", func() error {
- testChan <- true
- return nil
- })
- sut.Add(context.Background(), "test2", func() error {
- <-testChan
- succ = true
- return nil
- })
-
- // When
- err := sut.Cleanup()
-
- // Then
- Expect(err).To(BeNil())
- Expect(succ).To(BeTrue())
- })
})
