Skip to content

Commit

Permalink
test: decrease sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
YC committed Jul 11, 2024
1 parent 968440b commit 7acfe24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion services/mail/smtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,21 @@ func (c *Smtp4DevClient) CountMessages() (int, error) {
func (c *Smtp4DevClient) SetNoTls() error {
logbuch.Info("[smtp4Dev] disabling tls encryption")
err := c.SetConfigValue("tlsMode", "None")
time.Sleep(2 * time.Second)
return err
}

func (c *Smtp4DevClient) SetForcedTls() error {
logbuch.Info("[smtp4Dev] enabling forced tls encryption")
err := c.SetConfigValue("tlsMode", "ImplicitTls")
time.Sleep(2 * time.Second)
return err
}

func (c *Smtp4DevClient) SetStartTls() error {
logbuch.Info("[smtp4Dev] enabling tls encryption via starttls")
err := c.SetConfigValue("tlsMode", "StartTls")
time.Sleep(2 * time.Second)
return err
}

Expand All @@ -240,6 +243,7 @@ func (c *Smtp4DevClient) CreateTestUsers() error {
"defaultMailbox": "Default",
},
})
time.Sleep(100 * time.Millisecond)
return err
}

Expand Down Expand Up @@ -274,6 +278,5 @@ func (c *Smtp4DevClient) SetConfigValue(key string, val interface{}) error {
return err
}

time.Sleep(2 * time.Second)
return nil
}

0 comments on commit 7acfe24

Please sign in to comment.