Skip to content

Commit 545e950

Browse files
committed
cleaning code
1 parent 6763990 commit 545e950

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ jobs:
7272
# Set up Docker Compose environment
7373
- name: Set up Docker Compose environment
7474
run: |
75-
docker compose --profile all up -d --build
75+
docker compose --profile all up -d
7676
7777
- name: Run tests
7878
env:
79-
USE_PREBUILT_REDIS: "true"
79+
USE_CONTAINERIZED_REDIS: "true"
8080
RE_CLUSTER: "true"
8181
run: |
8282
go test \

.github/workflows/test-redis-enterprise.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Test
4848
env:
4949
RE_CLUSTER: "1"
50-
USE_PREBUILT_REDIS: "1"
50+
USE_CONTAINERIZED_REDIS: "1"
5151
run: |
5252
go test \
5353
--ginkgo.skip-file="ring_test.go" \

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
services:
44

5-
redis:
5+
redis-stanalone:
66
image: redislabs/client-libs-test:8.0-M02
77
container_name: redis-standalone
88
environment:

main_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var cluster = &clusterScenario{
6666
}
6767

6868
var RECluster = false
69-
var USE_PREBUILT_REDIS = false
69+
var USE_CONTAINERIZED_REDIS = false
7070

7171
func registerProcess(port string, p *redisProcess) {
7272
if processes == nil {
@@ -83,9 +83,8 @@ var _ = BeforeSuite(func() {
8383
}
8484
var err error
8585
RECluster, _ = strconv.ParseBool(os.Getenv("RE_CLUSTER"))
86-
USE_PREBUILT_REDIS, _ = strconv.ParseBool(os.Getenv("USE_PREBUILT_REDIS"))
87-
// panic("RECluster: " + strconv.FormatBool(RECluster) + " USE_PREBUILT_REDIS: " + strconv.FormatBool(USE_PREBUILT_REDIS))
88-
if !RECluster || !USE_PREBUILT_REDIS {
86+
USE_CONTAINERIZED_REDIS, _ = strconv.ParseBool(os.Getenv("USE_CONTAINERIZED_REDIS"))
87+
if !RECluster || !USE_CONTAINERIZED_REDIS {
8988

9089
redisMain, err = startRedis(redisPort)
9190
Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)