Skip to content

Commit 437184b

Browse files
authored
Upgrade redis-server version (#1833)
* Upgrade redis-server version Signed-off-by: monkey <[email protected]> * XAutoClaim changed the return value Signed-off-by: monkey <[email protected]>
1 parent 704212e commit 437184b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bench: testdeps
1414

1515
testdata/redis:
1616
mkdir -p $@
17-
wget -qO- https://download.redis.io/releases/redis-6.2.1.tar.gz | tar xvz --strip-components=1 -C $@
17+
wget -qO- https://download.redis.io/releases/redis-6.2.5.tar.gz | tar xvz --strip-components=1 -C $@
1818

1919
testdata/redis/src/redis-server: testdata/redis
2020
cd $< && make all

commands_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4635,7 +4635,7 @@ var _ = Describe("Commands", func() {
46354635
}
46364636
msgs, start, err := client.XAutoClaim(ctx, xca).Result()
46374637
Expect(err).NotTo(HaveOccurred())
4638-
Expect(start).To(Equal("2-0"))
4638+
Expect(start).To(Equal("3-0"))
46394639
Expect(msgs).To(Equal([]redis.XMessage{{
46404640
ID: "1-0",
46414641
Values: map[string]interface{}{"uno": "un"},
@@ -4647,19 +4647,16 @@ var _ = Describe("Commands", func() {
46474647
xca.Start = start
46484648
msgs, start, err = client.XAutoClaim(ctx, xca).Result()
46494649
Expect(err).NotTo(HaveOccurred())
4650-
Expect(start).To(Equal("3-0"))
4650+
Expect(start).To(Equal("0-0"))
46514651
Expect(msgs).To(Equal([]redis.XMessage{{
4652-
ID: "2-0",
4653-
Values: map[string]interface{}{"dos": "deux"},
4654-
}, {
46554652
ID: "3-0",
46564653
Values: map[string]interface{}{"tres": "troix"},
46574654
}}))
46584655

46594656
ids, start, err := client.XAutoClaimJustID(ctx, xca).Result()
46604657
Expect(err).NotTo(HaveOccurred())
4661-
Expect(start).To(Equal("3-0"))
4662-
Expect(ids).To(Equal([]string{"2-0", "3-0"}))
4658+
Expect(start).To(Equal("0-0"))
4659+
Expect(ids).To(Equal([]string{"3-0"}))
46634660
})
46644661

46654662
It("should XClaim", func() {

0 commit comments

Comments
 (0)