Run tests in serial and update multi-peer test (#269)

Updates test workflows with serial execution to avoid collision 
of ports and resource names.

Also, used -exec sudo flag for UNIX tests and removed not-needed
 limits configuration on Linux and added a 5 minutes timeout.

Updated the multi-peer tests in the client/internal/engine_test.go
 to provide proper validation when creating or starting 
a peer engine instance fails.

As some operations of the tests running on windows
 are slow, we will experiment with disabling the Defender before 
restoring cache and checkout a repository, then we reenable 
it to run the tests.

disabled extra logs for windows interface
This commit is contained in:
Maycon Santos
2022-03-16 11:02:06 +01:00
committed by GitHub
parent 957474817f
commit 1cd1e84290
5 changed files with 51 additions and 37 deletions

View File

@@ -22,6 +22,9 @@ jobs:
go-version: [1.17.x]
runs-on: windows-latest
steps:
- name: disable defender
run: Set-MpPreference -DisableRealtimeMonitoring $true
- name: Checkout code
uses: actions/checkout@v2
@@ -39,13 +42,16 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: enable defender
run: Set-MpPreference -DisableRealtimeMonitoring $false
- uses: actions/download-artifact@v2
with:
name: syso
path: iface\
- name: Install modules
run: go mod tidy
# - name: Install modules
# run: go mod tidy
- name: Test
run: go test -tags=load_wgnt_from_rsrc ./...
run: go test -tags=load_wgnt_from_rsrc -timeout 5m -p 1 ./...