Skip to content

Commit

Permalink
disable TestReceiveEventsAndMetadata/TestSocketCleanup/TestReceiveNew…
Browse files Browse the repository at this point in the history
…EventsConcurrently in Windows (elastic#21750) (elastic#21800)
  • Loading branch information
v1v authored Oct 14, 2020
1 parent 4381fc3 commit dffd5e7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ stages:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
when: ## Override the top-level when.
comments:
- "/test filebeat for windows-2016"
labels:
- "windows-2016"
branches: true ## for all the branches
tags: true ## for all the tags
12 changes: 12 additions & 0 deletions filebeat/inputsource/unix/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func TestErrorOnEmptyLineDelimiter(t *testing.T) {
}

func TestReceiveEventsAndMetadata(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("test is only supported on non-windows. See https://github.com/elastic/beats/issues/19641")
return
}
expectedMessages := generateMessages(5, 100)
largeMessages := generateMessages(10, 4096)
extraLargeMessages := generateMessages(2, 65*1024)
Expand Down Expand Up @@ -255,6 +259,10 @@ func TestSocketOwnershipAndMode(t *testing.T) {
}

func TestSocketCleanup(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("test is only supported on non-windows. See https://github.com/elastic/beats/issues/21757")
return
}
path := filepath.Join(os.TempDir(), "test.sock")
mockStaleSocket, err := net.Listen("unix", path)
require.NoError(t, err)
Expand Down Expand Up @@ -298,6 +306,10 @@ func TestSocketCleanupRefusal(t *testing.T) {
}

func TestReceiveNewEventsConcurrently(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("test is only supported on non-windows. See https://github.com/elastic/beats/issues/21757")
return
}
workers := 4
eventsCount := 100
path := filepath.Join(os.TempDir(), "test.sock")
Expand Down

0 comments on commit dffd5e7

Please sign in to comment.