mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
Make channel so stop doesn't fail; also, test stop.
This commit is contained in:
@@ -94,6 +94,7 @@ func newConntrackFlowWalker(useConntrack bool, args ...string) flowWalker {
|
||||
result := &conntrackWalker{
|
||||
activeFlows: map[int64]flow{},
|
||||
args: args,
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
go result.loop()
|
||||
return result
|
||||
|
||||
@@ -92,6 +92,7 @@ func TestConntracker(t *testing.T) {
|
||||
}
|
||||
|
||||
flowWalker := newConntrackFlowWalker(true)
|
||||
defer flowWalker.stop()
|
||||
|
||||
// First write out some empty xml for the existing connections
|
||||
ecbw := bufio.NewWriter(existingConnectionsWriter)
|
||||
|
||||
Reference in New Issue
Block a user