test: initialise and stop hub fixture workers before cleanup (#2463)

This commit is contained in:
user01010111
2026-09-29 12:42:36 +13:00
committed by GitHub
parent 130365f5d3
commit 8b38db1ba0
14 changed files with 292 additions and 110 deletions

View File

@@ -91,6 +91,7 @@ func TestNetworkMonitorReconnectSync(t *testing.T) {
require.NoError(t, app.SaveNoValidate(probe))
sm := NewSystemManager(stubHub{app})
require.NoError(t, sm.createSSHClientConfig())
t.Cleanup(func() {
sm.cancel()
_ = sm.RemoveSystem(sys.Id)