mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
common/remotedatasource: add a Stop() method
This is cleaner this way. We can't use it for the static provider as we cannot stop a provider.
This commit is contained in:
@@ -140,6 +140,7 @@ func TestSource(t *testing.T) {
|
||||
handler.fetcher, _ = New[remoteData](r, handler.UpdateData, "test", config)
|
||||
|
||||
handler.fetcher.Start()
|
||||
defer handler.fetcher.Stop()
|
||||
|
||||
// When not ready
|
||||
handler.dataLock.RLock()
|
||||
|
||||
Reference in New Issue
Block a user