Flush the background updater goroutines to make tests reliable

This commit is contained in:
Bryan Boreham committed 2015-06-15 13:48:54 +01:00
1 parent e49a29197b
commit 0ff311356d
4 files changed
+22

No files matched your search

+6
View File
@@ -291,6 +291,12 @@ func (zbs zoneDbsWithMockedMDns) Stop() {
}
}
func (zbs zoneDbsWithMockedMDns) Flush() {
for _, entry := range zbs {
entry.Zone.refreshScheds.Flush()
}
}
//////////////////////////////////////////////////////////////////
// A mocked cache where we never find a single thing... ;)