GODT-1650: sending with multiple addresses

This commit is contained in:
James Houlahan
2022-10-05 10:17:09 +02:00
parent 0badd69409
commit df7479f506
5 changed files with 86 additions and 16 deletions

View File

@ -24,13 +24,24 @@ import (
"testing"
"time"
"github.com/ProtonMail/proton-bridge/v2/internal/certs"
"github.com/ProtonMail/proton-bridge/v2/internal/user"
"github.com/cucumber/godog"
"github.com/stretchr/testify/require"
"gitlab.protontech.ch/go/liteapi/server/account"
)
func init() {
// Use the fast key generation for tests.
account.GenerateKey = FastGenerateKey
// Use the fast cert generation for tests.
certs.GenerateCert = FastGenerateCert
// Set the event period to 100 milliseconds for more responsive tests.
user.DefaultEventPeriod = 100 * time.Millisecond
// Don't use jitter during tests.
user.DefaultEventJitter = 0
}