feat(GODT-2552): Fix unit test.

This commit is contained in:
Romain LE JEUNE
2023-04-20 21:43:18 +02:00
committed by Romain Le Jeune
parent d88bee68c6
commit 4adc6d60b9
8 changed files with 139 additions and 2 deletions

View File

@ -823,6 +823,9 @@ func withBridgeNoMocks(
require.NoError(t, err)
require.Empty(t, bridge.GetErrors())
// Start the Heartbeat process.
bridge.StartHeartbeat(mocks.Heartbeat)
// Wait for bridge to finish loading users.
waitForEvent(t, eventCh, events.AllUsersLoaded{})
// Wait for bridge to start the IMAP server.