forked from Silverfish/proton-bridge
Other: Fix goroutine leaks in sync tests
Add missing Close calls. Properly handle nil channel for `user.startSync`. This patch also updated liteapi and Gluon to latest master and dev version respectively.
This commit is contained in:
committed by
James Houlahan
parent
6fdc8bd379
commit
6bbaf03f1f
@ -161,6 +161,18 @@ func (t *testCtx) stopBridge() error {
|
||||
}
|
||||
|
||||
t.bridge = nil
|
||||
t.loginCh.CloseAndDiscardQueued()
|
||||
t.logoutCh.CloseAndDiscardQueued()
|
||||
t.loadedCh.CloseAndDiscardQueued()
|
||||
t.deletedCh.CloseAndDiscardQueued()
|
||||
t.deauthCh.CloseAndDiscardQueued()
|
||||
t.addrCreatedCh.CloseAndDiscardQueued()
|
||||
t.addrDeletedCh.CloseAndDiscardQueued()
|
||||
t.syncStartedCh.CloseAndDiscardQueued()
|
||||
t.syncFinishedCh.CloseAndDiscardQueued()
|
||||
t.forcedUpdateCh.CloseAndDiscardQueued()
|
||||
t.connStatusCh.CloseAndDiscardQueued()
|
||||
t.updateCh.CloseAndDiscardQueued()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user