mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Merge pull request #1358 from weaveworks/1081-flaky
Add buffer to mockPublisher channel to prevent deadlock between Publish() and Stop()
This commit is contained in:
@@ -96,7 +96,7 @@ func TestProbe(t *testing.T) {
|
||||
LastSeen: now,
|
||||
}
|
||||
|
||||
pub := mockPublisher{make(chan report.Report)}
|
||||
pub := mockPublisher{make(chan report.Report, 10)}
|
||||
|
||||
p := New(probeID, 10*time.Millisecond, 100*time.Millisecond, pub)
|
||||
p.AddReporter(mockReporter{want})
|
||||
|
||||
Reference in New Issue
Block a user