From d8cccf15325cff1325225c7520a1f1a80ef2fac4 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Wed, 12 Mar 2025 10:19:29 +0700 Subject: [PATCH] fix: honor server-path in test_test.go So that it's possible to run tests with: ``` go test [...] -redis-server valkey-server ``` --- redis/test_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/test_test.go b/redis/test_test.go index f7598683..ba2a6264 100644 --- a/redis/test_test.go +++ b/redis/test_test.go @@ -63,7 +63,7 @@ type version struct { } func redisServerVersion() (*version, error) { - out, err := exec.Command("redis-server", "--version").Output() + out, err := exec.Command(*serverPath, "--version").Output() if err != nil { return nil, fmt.Errorf("server version: %w", err) }