Skip to content

Commit bcd4e79

Browse files
committed
fixup! Re-invoke watcher after takeover
1 parent cba5465 commit bcd4e79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/pkg/agent/application/upgrade/upgrade_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ func TestManualRollback(t *testing.T) {
11521152
err = locker.TryLock()
11531153
require.NoError(t, err, "error locking initial watcher AppLocker")
11541154
// there's no takeover watcher so no expectation on that or InvokeWatcher
1155+
t.Cleanup(func() {
1156+
unlockErr := locker.Unlock()
1157+
assert.NoError(t, unlockErr, "error unlocking initial watcher AppLocker")
1158+
})
11551159
},
11561160
artifactSettings: artifact.DefaultConfig(),
11571161
upgradeSettings: configuration.DefaultUpgradeConfig(),

0 commit comments

Comments
 (0)