Skip to content

Commit a16740d

Browse files
committed
add race and timeout args
1 parent 0aca812 commit a16740d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pipelines/templates/run-unit-tests.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ stages:
3737
pool:
3838
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
3939
steps:
40-
# Test changes under review; only run one go test per script
40+
# Only run one go test per script
4141
- script: |
42+
set CGO_ENABLED=1
4243
cd azure-container-networking/
43-
go test ./npm/... ./cni/... ./platform/...
44+
go test -race -timeout 30m ./npm/... ./cni/... ./platform/...
4445
retryCountOnTaskFailure: 3
4546
name: "TestWindows"
4647
displayName: "Run Windows Tests"

.pipelines/templates/unit-tests.stages.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ stages:
5252
- checkout: ACNReviewChanges
5353
clean: true
5454
- script: |
55+
set CGO_ENABLED=1
5556
cd azure-container-networking/
56-
go test ./npm/... ./cni/... ./platform/...
57+
CGO_ENABLED=1 go test -race -timeout 30m ./npm/... ./cni/... ./platform/...
5758
retryCountOnTaskFailure: 3
5859
name: "TestWindows"
5960
displayName: "Run Windows Tests"

0 commit comments

Comments
 (0)