Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
allaVolkov committed Feb 25, 2019
1 parent 2f34573 commit 9f6b7d2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/artifacts/cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@ var _ = Describe("Cleanup", func() {
return "", errors.New("err")
})).Should(HaveOccurred())
})
It("Fails on RemoveAll, another go routine creates file in the folder to be cleaned", func() {
messages := make(chan string)
messages1 := make(chan string)
go func() {
file, _ := os.OpenFile(getTestPath("result", ".mtahtml5_mta_build_tmp", "abc.txt"), os.O_CREATE, 0666)
messages1 <- "ping1"
<-messages
file.Close()
}()
<-messages1
Ω(ExecuteCleanup(getTestPath("mtahtml5"), getResultPath(), "dev", os.Getwd)).Should(HaveOccurred())
messages <- "ping"
})
})

var _ = Describe("Cleanup", func() {
Expand Down

0 comments on commit 9f6b7d2

Please sign in to comment.