fix datarace in input apache plugin

This commit is contained in:
Konstantin Kulikov
2016-06-17 23:14:29 +03:00
parent af0979cce5
commit d55fa88dd0
2 changed files with 10 additions and 7 deletions

View File

@@ -36,7 +36,8 @@ func TestHTTPApache(t *testing.T) {
defer ts.Close()
a := Apache{
Urls: []string{ts.URL},
// Fetch it 2 times to catch possible data races.
Urls: []string{ts.URL, ts.URL},
}
var acc testutil.Accumulator