Skip to content

Commit

Permalink
disable TestReceiveEventsAndMetadata/TestSocketCleanup/TestReceiveNew…
Browse files Browse the repository at this point in the history
…EventsConcurrently in Windows (#21750) (#21798)
  • Loading branch information
v1v committed Oct 14, 2020
1 parent b80a4b8 commit 76c27aa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
12 changes: 11 additions & 1 deletion filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@ stages:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
#- "windows-2016" https://github.com/elastic/beats/issues/19641
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 76c27aa

Please sign in to comment.