fix datarace in input apache plugin

closes #1384
This commit is contained in:
Konstantin Kulikov
2016-06-17 23:14:29 +03:00
committed by Cameron Sparr
parent 4b6f9b93dd
commit 3098564896
3 changed files with 11 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