Skip to content

Commit 04a54d8

Browse files
authored
fix: server-path not being honored (#686)
Use the server path in test_test.go so that the follow works as expected ```shell go test [...] -redis-server valkey-server ```
1 parent ad5af85 commit 04a54d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redis/test_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type version struct {
6363
}
6464

6565
func redisServerVersion() (*version, error) {
66-
out, err := exec.Command("redis-server", "--version").Output()
66+
out, err := exec.Command(*serverPath, "--version").Output()
6767
if err != nil {
6868
return nil, fmt.Errorf("server version: %w", err)
6969
}

0 commit comments

Comments
 (0)