Skip to content

Commit 47b858c

Browse files
committed
fix makefile
1 parent 2ba0af1 commit 47b858c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GO_MOD_DIRS := $(shell find . -type f -name 'go.mod' -exec dirname {} \; | sort)
2-
REDIS_MAJOR="7.4.2"
32
export REDIS_MAJOR_VERSION := 7
3+
GETCONTAINERID = $(eval DOCKERCONTAINER=$(shell docker container ls -a -q --filter name=go-redis-redis-stack))
44

55
test: testdeps
66
$(eval R_MAJOR := $(shell echo "$(REDIS_VERSION)" | grep -o '\d' | head -1))
@@ -23,7 +23,8 @@ test: testdeps
2323
done
2424
cd internal/customvet && go build .
2525
go vet -vettool ./internal/customvet/customvet
26-
docker stop $(shell docker container ls -a -q --filter name=go-redis-redis-stack)
26+
$(GETCONTAINERID)
27+
docker stop $(DOCKERCONTAINER)
2728

2829
testdeps: testdata/redis/src/redis-server
2930

search_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ var _ = Describe("RediSearch commands Resp 2", Label("search"), func() {
387387

388388
res, err := client.FTSearchWithArgs(ctx, "idx1", "quick", &redis.FTSearchOptions{WithScores: true}).Result()
389389
Expect(err).NotTo(HaveOccurred())
390-
Expect(*res.Docs[0].Score).To(BeNumerically("<=", 0.22471909420069797))
390+
Expect(*res.Docs[0].Score).To(BeNumerically("<=", 0.236))
391391

392392
res, err = client.FTSearchWithArgs(ctx, "idx1", "quick", &redis.FTSearchOptions{WithScores: true, Scorer: "TFIDF"}).Result()
393393
Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)