mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 17:46:48 +00:00
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:
@ -62,7 +62,7 @@ func (ctx *TestContext) addCleanup(c func(), label string) {
|
||||
cleaner.file, cleaner.lineNumber = filepath.Base(file), line
|
||||
}
|
||||
|
||||
ctx.cleanupSteps = append(ctx.cleanupSteps, cleaner)
|
||||
ctx.cleanupSteps = append([]*Cleaner{cleaner}, ctx.cleanupSteps...)
|
||||
}
|
||||
|
||||
// addCleanupChecked adds an operation that may return an error to be performed at the end of the test.
|
||||
@ -83,5 +83,5 @@ func (ctx *TestContext) addCleanupChecked(f func() error, label string) {
|
||||
cleaner.file, cleaner.lineNumber = filepath.Base(file), line
|
||||
}
|
||||
|
||||
ctx.cleanupSteps = append(ctx.cleanupSteps, cleaner)
|
||||
ctx.cleanupSteps = append([]*Cleaner{cleaner}, ctx.cleanupSteps...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user