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

Run tests against latest Redis version.

This commit is contained in:
Vladimir Mihailenco
2015-05-18 14:43:08 +03:00
parent 4df8b2bbbc
commit bca8659b54
2 changed files with 13 additions and 4 deletions

View File

@ -273,7 +273,7 @@ var _ = Describe("Commands", func() {
})
It("should Migrate", func() {
migrate := client.Migrate("localhost", "6380", "key", 0, 0)
migrate := client.Migrate("localhost", redisSecondaryPort, "key", 0, 0)
Expect(migrate.Err()).NotTo(HaveOccurred())
Expect(migrate.Val()).To(Equal("NOKEY"))
@ -281,7 +281,7 @@ var _ = Describe("Commands", func() {
Expect(set.Err()).NotTo(HaveOccurred())
Expect(set.Val()).To(Equal("OK"))
migrate = client.Migrate("localhost", "6380", "key", 0, 0)
migrate = client.Migrate("localhost", redisSecondaryPort, "key", 0, 0)
Expect(migrate.Err()).To(MatchError("IOERR error or timeout writing to target instance"))
Expect(migrate.Val()).To(Equal(""))
})