Kill the whole docker acquis in tests (#1475)

This commit is contained in:
blotus 2022-04-22 16:56:22 +02:00 committed by GitHub
parent c17c651458
commit 1bd8cc79c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,7 +183,7 @@ container_name_regexp:
ticker.Reset(1 * time.Second)
case <-ticker.C:
log.Infof("no more line to read")
streamTomb.Kill(nil)
dockerSource.t.Kill(nil)
return nil
}
}
@ -198,7 +198,6 @@ container_name_regexp:
if ts.expectedLines != 0 {
assert.Equal(t, ts.expectedLines, actualLines)
}
dockerSource.t.Kill(nil)
err = streamTomb.Wait()
if err != nil {
t.Fatalf("docker acquisition error: %s", err)