Skip to content

startSentinel in main_test.go fails #2290

@boatrainlsz

Description

@boatrainlsz

I ran unit testcases followed the instruction specified here:https://github.com/go-redis/redis#run-the-test. but sentinel cloud not start successfully. after searching issue in https://github.com/redis, I found a similar issue:redis/redis#1463, then I changed the line 339 in main_test.go from:

process, err := execCmd(redisServerBin, sentinelConf, "--sentinel", "--port", port, "--dir", dir)

into:

process, err := execCmd(redisServerBin, sentinelConf, "--port", port, "--dir", dir, "--sentinel")

and problem solved. is it just me or is there a common issue here?

Expected Behavior

sentinel should start successfully

Current Behavior

sentinel start fails with error:

*** FATAL CONFIG FILE ERROR (Redis 7.0.5) ***
Reading the configuration file, at line 27
>>> 'sentinel "--port" "9126"'
Unrecognized sentinel configuration statement.

Possible Solution

as above

Steps to Reproduce

  1. clone master
  2. go test

Context (Environment)

Redis 7.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions