1
1
Fork 0
mirror of https://github.com/wneessen/go-mail.git synced 2024-12-22 18:50:37 +01:00

Remove redundant comments from sleep statements

Removed unnecessary comments that were clarifying the purpose of sleep statements in the test cases. This makes the code cleaner and easier to maintain by reducing clutter.
This commit is contained in:
Winni Neessen 2024-09-20 16:23:31 +02:00
parent 157c138142
commit d5437f6b7a
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -1270,7 +1270,7 @@ func TestClient_SendErrorNoEncoding(t *testing.T) {
return
}
}()
time.Sleep(time.Millisecond * 300) // wait until tcp server has been settled
time.Sleep(time.Millisecond * 300)
message := NewMsg()
if err := message.From("valid-from@domain.tld"); err != nil {
@ -1336,7 +1336,7 @@ func TestClient_SendErrorMailFrom(t *testing.T) {
return
}
}()
time.Sleep(time.Millisecond * 300) // wait until tcp server has been settled
time.Sleep(time.Millisecond * 300)
message := NewMsg()
if err := message.From("invalid-from@domain.tld"); err != nil {
@ -1401,7 +1401,7 @@ func TestClient_SendErrorMailFromReset(t *testing.T) {
return
}
}()
time.Sleep(time.Millisecond * 300) // wait until tcp server has been settled
time.Sleep(time.Millisecond * 300)
message := NewMsg()
if err := message.From("invalid-from@domain.tld"); err != nil {
@ -1475,7 +1475,7 @@ func TestClient_SendErrorToReset(t *testing.T) {
return
}
}()
time.Sleep(time.Millisecond * 300) // wait until tcp server has been settled
time.Sleep(time.Millisecond * 300)
message := NewMsg()
if err := message.From("valid-from@domain.tld"); err != nil {