mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
GODT-2202: Report update errors from Gluon
For every update sent to gluon wait and check the error code to see if an error occurred. Note: Updates can't be inspect on the call site as it can lead to deadlocks.
This commit is contained in:
@ -110,7 +110,7 @@ func TestUser_AddressMode(t *testing.T) {
|
||||
for _, imapConn := range imapConn {
|
||||
go func(imapConn connector.Connector) {
|
||||
for update := range imapConn.GetUpdates() {
|
||||
update.Done()
|
||||
update.Done(nil)
|
||||
}
|
||||
}(imapConn)
|
||||
}
|
||||
@ -226,7 +226,7 @@ func withUser(tb testing.TB, ctx context.Context, _ *server.Server, m *proton.Ma
|
||||
for _, imapConn := range imapConn {
|
||||
go func(imapConn connector.Connector) {
|
||||
for update := range imapConn.GetUpdates() {
|
||||
update.Done()
|
||||
update.Done(nil)
|
||||
}
|
||||
}(imapConn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user