From 2340f1c0857b7356c6a59b2f6928f54b8c33f4b9 Mon Sep 17 00:00:00 2001 From: Juliano Martinez Date: Mon, 4 Dec 2023 23:22:23 +0100 Subject: [PATCH] adds the missing command mock --- pkg/aclmanager/aclmanager_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/aclmanager/aclmanager_test.go b/pkg/aclmanager/aclmanager_test.go index fded632..6e039f0 100644 --- a/pkg/aclmanager/aclmanager_test.go +++ b/pkg/aclmanager/aclmanager_test.go @@ -419,6 +419,7 @@ func TestAclManager_Loop(t *testing.T) { if tt.name == "primary node" { mock.ExpectInfo("replication").SetErr(fmt.Errorf("error")) } else { + mock.ExpectInfo("replication").SetVal(followerOutput) mock.ExpectInfo("replication").SetVal(followerOutput) mock.ExpectInfo("replication").SetErr(fmt.Errorf("error")) }