mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
smtpsrv: Disable reloads during tests
Reloading during tests will cause the testing aliases to be removed, which makes test runs that extend beyond 30s to be flaky. This patch fixes the bug by disabling reloads during these tests.
This commit is contained in:
@@ -584,6 +584,9 @@ func realMain(m *testing.M) int {
|
||||
// Disable SPF lookups, to avoid leaking DNS queries.
|
||||
disableSPFForTesting = true
|
||||
|
||||
// Disable reloading.
|
||||
reloadEvery = nil
|
||||
|
||||
go s.ListenAndServe()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user