1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Skip flaky tests.

This commit is contained in:
Vladimir Mihailenco
2016-03-14 16:51:46 +02:00
parent 46790aa060
commit e37202e605
5 changed files with 24 additions and 15 deletions

View File

@ -57,16 +57,20 @@ var _ = Describe("Commands", func() {
})
It("should BgRewriteAOF", func() {
r := client.BgRewriteAOF()
Expect(r.Err()).NotTo(HaveOccurred())
Expect(r.Val()).To(ContainSubstring("Background append only file rewriting"))
Skip("flaky test")
val, err := client.BgRewriteAOF().Result()
Expect(err).NotTo(HaveOccurred())
Expect(val).To(ContainSubstring("Background append only file rewriting"))
})
It("should BgSave", func() {
Skip("flaky test")
// workaround for "ERR Can't BGSAVE while AOF log rewriting is in progress"
Eventually(func() string {
return client.BgSave().Val()
}, "10s").Should(Equal("Background saving started"))
}, "30s").Should(Equal("Background saving started"))
})
It("should ClientKill", func() {