Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable TestReceiveEventsAndMetadata/TestSocketCleanup/TestReceiveNewEventsConcurrently in Windows #21750

Merged
merged 4 commits into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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