diff --git a/auditbeat/module/file_integrity/metricset_test.go b/auditbeat/module/file_integrity/metricset_test.go index 841056f7aa10..60766d7c141c 100644 --- a/auditbeat/module/file_integrity/metricset_test.go +++ b/auditbeat/module/file_integrity/metricset_test.go @@ -67,10 +67,6 @@ func TestData(t *testing.T) { func TestActions(t *testing.T) { defer abtest.SetupDataDir(t)() - if runtime.GOOS == "windows" { - t.Skip("Skipping flaky test: https://github.com/elastic/beats/issues/22518") - } - bucket, err := datastore.OpenBucket(bucketName) if err != nil { t.Fatal(err) @@ -138,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)