Skip to content

Commit

Permalink
Disable tests for windows in auditbeat. See elastic#21958
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Oct 22, 2020
1 parent a82fb0f commit fcf5fba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions auditbeat/module/file_integrity/eventreader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ func TestEventReader(t *testing.T) {
})

mustRun(t, "deleted", func(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("See https://github.com/elastic/beats/issues/21958")
}
if err = os.Remove(txt2); err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -310,6 +313,9 @@ func readTimeout(t testing.TB, events <-chan Event) Event {
case <-time.After(time.Second):
t.Fatalf("%+v", errors.Errorf("timed-out waiting for event"))
case e, ok := <-events:
if runtime.GOOS == "windows" {
t.Skip("See https://github.com/elastic/beats/issues/21958")
}
if !ok {
t.Fatal("failed reading from event channel")
}
Expand Down

0 comments on commit fcf5fba

Please sign in to comment.