Skip to content

Commit

Permalink
smtp_test: runTestSession did not give enough time to process before …
Browse files Browse the repository at this point in the history
…shutting down, triggering data race detection
  • Loading branch information
Lucas Hinderberger committed Jul 1, 2024
1 parent e02654c commit 0ab6e00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/smtp/smtp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func runTestSession() *Server {
panic(err)
}

// give the server some time to process
time.Sleep(time.Second)

return server
}

Expand Down

0 comments on commit 0ab6e00

Please sign in to comment.