mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 16:46:55 +00:00
GODT-1523: Reduce unnecessary shell executions. Inspired by @kortschak.
This commit is contained in:
@ -175,5 +175,6 @@ func (ctx *TestContext) MessagePreparationFinished(username string) {
|
||||
}
|
||||
|
||||
func (ctx *TestContext) CredentialsFailsOnWrite(shouldFail bool) {
|
||||
ctx.credStore.(*fakeCredStore).failOnWrite = shouldFail //nolint:forcetypeassert
|
||||
ctx.credStore.(*fakeCredStore).failOnWrite = shouldFail //nolint:forcetypeassert
|
||||
ctx.addCleanup(func() { ctx.credStore.(*fakeCredStore).failOnWrite = false }, "credentials-cleanup") //nolint:forcetypeassert
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user