Skip to content

Commit

Permalink
Skip test timing out on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Apr 25, 2024
1 parent f13137a commit d41b059
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions internal/scan/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ func TestScanServiceDowntime(t *testing.T) {
}

func TestScanWithFingerprint(t *testing.T) {
if runtime.GOOS == windowsOS {
t.Skipf("TestScan is skipped due to Windows env")
}
clientMock := testdata.NewDebClientMock()
addMockedFormatsResponse(clientMock, "yarn\\.lock")
addMockedFileUploadResponse(clientMock)
Expand Down Expand Up @@ -709,6 +712,9 @@ func TestScanWithCallgraph(t *testing.T) {
}

func TestScanFingerprintWithoutEnterprise(t *testing.T) {
if runtime.GOOS == windowsOS {
t.Skipf("TestScan is skipped due to Windows env")
}
clientMock := testdata.NewDebClientMock()
addMockedFormatsResponse(clientMock, "yarn\\.lock")
addMockedFileUploadResponse(clientMock)
Expand Down Expand Up @@ -747,6 +753,9 @@ func TestScanFingerprintWithoutEnterprise(t *testing.T) {
}

func TestScanWithFingerprintMalformedBilling(t *testing.T) {
if runtime.GOOS == windowsOS {
t.Skipf("TestScan is skipped due to Windows env")
}
clientMock := testdata.NewDebClientMock()
addMockedFormatsResponse(clientMock, "yarn\\.lock")
addMockedMalformedBillingPlanResponse(clientMock)
Expand Down Expand Up @@ -795,6 +804,9 @@ func TestScanWithFingerprintMalformedBilling(t *testing.T) {
}

func TestScanWithFingerprintBillingStatusCodeError(t *testing.T) {
if runtime.GOOS == windowsOS {
t.Skipf("TestScan is skipped due to Windows env")
}
clientMock := testdata.NewDebClientMock()
addMockedFormatsResponse(clientMock, "yarn\\.lock")
addMockedNotOKBillingPlanResponse(clientMock, "enterprise")
Expand Down

0 comments on commit d41b059

Please sign in to comment.