feat: run ~always netxlite integration tests (#522)

* feat: run ~always netxlite integration tests

This diff ensures that we check on windows, linux, macos that our
fundamental networking library (netxlite) works.

We combine unit and integration tests.

This work is part of https://github.com/ooni/probe/issues/1733, where
I want to have more strong guarantees about the foundations.

* fix(filtering/tls_test.go): make portable on Windows

The trick here is to use the wrapped error so to normalize the
different errors messages we see on Windows.

* fix(netxlite/quic_test.go): make portable on windows

Rather than using the zero port, use the `x` port which fails
when the stdlib is parsing the address.

The zero port seems to work on Windows while it does not on Unix.

* fix(serialresolver_test.go): make error more timeout than before

This seems enough to convince Go on Windows about this error
being really a timeout timeouty timeouted thingie.
This commit is contained in:
Simone Basso
2021-09-29 16:04:26 +02:00
committed by GitHub
parent 9967803c31
commit b9a844ecee
14 changed files with 1588 additions and 108 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
go: [ "1.17" ]
go: [ "1.17.1" ]
steps:
- uses: actions/setup-go@v1
with:
+20
View File
@@ -0,0 +1,20 @@
# netxlite runs unit and integration tests on our fundamental net library
name: netxlite
on:
pull_request:
push:
branches:
- "master"
jobs:
test:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
go: [ "1.17.1" ]
os: [ "ubuntu-20.04", "windows-2019", "macos-10.15" ]
steps:
- uses: actions/setup-go@v1
with:
go-version: "${{ matrix.go }}"
- uses: actions/checkout@v2
- run: go test -race ./internal/netxlite/...