Flush the background updater goroutines to make tests reliable
This commit is contained in:
1 parent
e49a29197b
commit
0ff311356d
4 files changed
+22
No files matched your search
@@ -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... ;)
|
||||
|
||||
Reference in new issue
Block a user