Wait for done chan first before Cleanup
This commit is contained in:
parent
308ca46680
commit
26dc82c746
|
@ -507,10 +507,9 @@ func (t TailTest) VerifyTailOutput(tail *Tail, lines []string) {
|
|||
}
|
||||
|
||||
func (t TailTest) Cleanup(tail *Tail, stop bool) {
|
||||
<-time.After(100 * time.Millisecond)
|
||||
<-t.done
|
||||
if stop {
|
||||
tail.Stop()
|
||||
}
|
||||
tail.Cleanup()
|
||||
<-t.done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue