mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
fix race in imapserver tests
This commit is contained in:
parent
9b429cce4f
commit
e5eaf4d46f
2 changed files with 4 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue