mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
feat: Enable CI for Redis CE 8.0 (#3274)
* chore: extract benchmark tests * wip * enable pubsub tests * enable ring tests * stop tests with build redis from source * start all tests * mix of makefile and action * add sentinel configs * fix example test * stop debug on re * wip * enable gears for redis 7.2 * wip * enable sentinel, they are expected to fail * fix: linter configuration * chore: update re versions * return older redis enterprise version * add basic codeql * wip: increase timeout, focus only sentinel tests * sentinels with docker network host * enable all tests * fix flanky test * enable example tests * tidy docker compose * add debug output * stop shutingdown masters * don't test sentinel for re * skip unsuported addscores * Update README bump go version in CI * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update CONTRIBUTING.md add information about new test setup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
14
race_test.go
14
race_test.go
@@ -105,7 +105,7 @@ var _ = Describe("races", func() {
|
||||
})
|
||||
|
||||
It("should handle big vals in Get", func() {
|
||||
C, N = 4, 100
|
||||
C, N := 4, 100
|
||||
|
||||
bigVal := bigVal()
|
||||
|
||||
@@ -126,7 +126,7 @@ var _ = Describe("races", func() {
|
||||
})
|
||||
|
||||
It("should handle big vals in Set", func() {
|
||||
C, N = 4, 100
|
||||
C, N := 4, 100
|
||||
|
||||
bigVal := bigVal()
|
||||
perform(C, func(id int) {
|
||||
@@ -138,7 +138,7 @@ var _ = Describe("races", func() {
|
||||
})
|
||||
|
||||
It("should select db", Label("NonRedisEnterprise"), func() {
|
||||
err := client.Set(ctx, "db", 1, 0).Err()
|
||||
err := client.Set(ctx, "db", 0, 0).Err()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
perform(C, func(id int) {
|
||||
@@ -159,7 +159,7 @@ var _ = Describe("races", func() {
|
||||
|
||||
n, err := client.Get(ctx, "db").Int64()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
Expect(n).To(Equal(int64(1)))
|
||||
Expect(n).To(Equal(int64(0)))
|
||||
})
|
||||
|
||||
It("should select DB with read timeout", func() {
|
||||
@@ -214,12 +214,14 @@ var _ = Describe("races", func() {
|
||||
Expect(val).To(Equal(int64(C * N)))
|
||||
})
|
||||
|
||||
PIt("should BLPop", func() {
|
||||
It("should BLPop", func() {
|
||||
C := 5
|
||||
N := 5
|
||||
var received uint32
|
||||
|
||||
wg := performAsync(C, func(id int) {
|
||||
for {
|
||||
v, err := client.BLPop(ctx, 5*time.Second, "list").Result()
|
||||
v, err := client.BLPop(ctx, time.Second, "list").Result()
|
||||
if err != nil {
|
||||
if err == redis.Nil {
|
||||
break
|
||||
|
Reference in New Issue
Block a user