fix race in imapserver tests
Some checks failed
Build and test / build-test (oldstable) (push) Has been cancelled
Build and test / build-test (stable) (push) Has been cancelled

This commit is contained in:
Mechiel Lukkien 2024-12-25 16:50:23 +01:00
parent 9b429cce4f
commit e5eaf4d46f
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -11,10 +11,11 @@ import (
func TestIdle(t *testing.T) {
tc1 := start(t)
defer tc1.close()
tc1.client.Login("mjl@mox.example", password0)
tc2 := startNoSwitchboard(t)
defer tc2.close()
tc1.client.Login("mjl@mox.example", password0)
tc2.client.Login("mjl@mox.example", password0)
tc1.transactf("ok", "select inbox")

View file

@ -633,10 +633,11 @@ func TestMailbox(t *testing.T) {
func TestMailboxDeleted(t *testing.T) {
tc := start(t)
defer tc.close()
tc.client.Login("mjl@mox.example", password0)
tc2 := startNoSwitchboard(t)
defer tc2.close()
tc.client.Login("mjl@mox.example", password0)
tc2.client.Login("mjl@mox.example", password0)
tc.client.Create("testbox")