diff --git a/auditbeat/module/file_integrity/metricset_test.go b/auditbeat/module/file_integrity/metricset_test.go index 1cbdf7319a9..60766d7c141 100644 --- a/auditbeat/module/file_integrity/metricset_test.go +++ b/auditbeat/module/file_integrity/metricset_test.go @@ -134,10 +134,8 @@ func TestActions(t *testing.T) { } // Create some files in first directory - go func() { - ioutil.WriteFile(createdFilepath, []byte("hello world"), 0600) - ioutil.WriteFile(updatedFilepath, []byte("hello world"), 0600) - }() + ioutil.WriteFile(createdFilepath, []byte("hello world"), 0600) + ioutil.WriteFile(updatedFilepath, []byte("hello world"), 0600) ms := mbtest.NewPushMetricSetV2(t, getConfig(dir, newDir)) events := mbtest.RunPushMetricSetV2(10*time.Second, 5, ms)