From 0800cc267d75f1add75aae97b1923be96b3392b5 Mon Sep 17 00:00:00 2001 From: Oleksandr Mordyk Date: Thu, 5 Dec 2024 01:28:43 -0800 Subject: [PATCH] Issue open-horizon#4185 - Fix "Test_SUM_Queue" unit-test Signed-off-by: Oleksandr Mordyk --- agreementbot/secret_updater_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agreementbot/secret_updater_test.go b/agreementbot/secret_updater_test.go index a2c3031a9..a069ba55d 100644 --- a/agreementbot/secret_updater_test.go +++ b/agreementbot/secret_updater_test.go @@ -5,9 +5,10 @@ package agreementbot import ( //"fmt" + "testing" + "github.com/open-horizon/anax/events" "github.com/stretchr/testify/assert" - "testing" ) // Ensure that the secret manager queueing is working. @@ -29,7 +30,7 @@ func Test_SUM_Queue(t *testing.T) { sus.AddSecretUpdate(su2) // Now test the secret update manager. - sum := NewSecretUpdateManager() + sum := NewSecretUpdateManager(60, 60, 300, 30) sum.SetUpdateEvent(sus) assert.True(t, len(sum.PendingUpdates) == 1, "There should be 1 pending update")