Skip to content

Commit

Permalink
fix error (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncode authored Dec 10, 2023
1 parent 3f3aaa5 commit 510274c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/aclmanager/aclmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func TestAclManager_Loop(t *testing.T) {
nodes: make(map[string]int),
},
wantErr: true,
expectError: fmt.Errorf("error"),
expectError: fmt.Errorf("unable to find Primary"),
},
{
name: "follower node with error",
Expand Down Expand Up @@ -576,7 +576,7 @@ func TestAclManager_Loop(t *testing.T) {
tt.aclManager.RedisClient = redisClient

if tt.wantErr {
if tt.name == "Primary node" {
if tt.name == "Primary node with error" {
mock.ExpectInfo("replication").SetErr(fmt.Errorf("error"))
mock.ExpectInfo("replication").SetErr(fmt.Errorf("error"))
mock.ExpectInfo("replication").SetErr(fmt.Errorf("error"))
Expand Down

0 comments on commit 510274c

Please sign in to comment.