add memory tests
This commit is contained in:
@ -97,3 +97,10 @@ func copyErrors(errors []string) []string {
|
||||
}
|
||||
return copiedErrors
|
||||
}
|
||||
|
||||
// Clear will empty all the results from the in memory store
|
||||
func (ims *InMemoryStore) Clear() {
|
||||
serviceResultsMutex.Lock()
|
||||
serviceStatuses = make(map[string]*core.ServiceStatus)
|
||||
serviceResultsMutex.Unlock()
|
||||
}
|
||||
|
Reference in New Issue
Block a user