GODT-1474: Optimising live integration tests

- pkg/pmapi: Reduce max number of retries
- test/features: tweak create mailbox scenarios.
- test/context: change order of clean up steps
- test/context: logger field
- test/context: message preparation per username
- test/context: check that eventID has changed after adding messages
- test/features: make sure we wait 15sec before detecting import duplicates
This commit is contained in:
Jakub
2022-01-04 08:17:54 +01:00
parent d356f306d9
commit 22f427d522
13 changed files with 138 additions and 46 deletions

View File

@ -36,6 +36,8 @@ type Controller struct {
// State controlled by test.
noInternetConnection bool
lastEventByUsername map[string]string
}
func NewController() (*Controller, pmapi.Manager) {
@ -46,6 +48,7 @@ func NewController() (*Controller, pmapi.Manager) {
messageIDsByUsername: map[string][]string{},
noInternetConnection: false,
lastEventByUsername: map[string]string{},
}
persistentClients.manager.SetTransport(&fakeTransport{