Skip to content

Commit

Permalink
Issue #4185 - Fix "Test_SUM_Queue" unit-test
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Mordyk <oleksandr.mordyk1994@outlook.com>
  • Loading branch information
omordyk committed Dec 6, 2024
1 parent d190a90 commit 0800cc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agreementbot/secret_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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")
Expand Down

0 comments on commit 0800cc2

Please sign in to comment.