Run windows parallel integration test as short

This prevents tests which spawn daemons from running at
the same time as the first integration test.

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan 2021-12-08 14:59:32 -08:00
parent 807213fd32
commit 2c96d5b067
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB
3 changed files with 11 additions and 1 deletions

View File

@ -296,6 +296,7 @@ jobs:
- name: Integration 2
env:
TESTFLAGS_PARALLEL: 1
EXTRA_TESTFLAGS: "-short"
CGO_ENABLED: 1
GOTESTSUM_JUNITFILE: ${{github.workspace}}/test-integration-parallel-junit.xml
run: mingw32-make.exe integration

View File

@ -30,6 +30,9 @@ import (
)
func TestClientTTRPC_New(t *testing.T) {
if testing.Short() {
t.Skip()
}
client, err := ttrpcutil.NewClient(address + ".ttrpc")
assert.NilError(t, err)
@ -38,6 +41,9 @@ func TestClientTTRPC_New(t *testing.T) {
}
func TestClientTTRPC_Reconnect(t *testing.T) {
if testing.Short() {
t.Skip()
}
client, err := ttrpcutil.NewClient(address + ".ttrpc")
assert.NilError(t, err)
@ -63,6 +69,9 @@ func TestClientTTRPC_Reconnect(t *testing.T) {
}
func TestClientTTRPC_Close(t *testing.T) {
if testing.Short() {
t.Skip()
}
client, err := ttrpcutil.NewClient(address + ".ttrpc")
assert.NilError(t, err)

View File

@ -140,7 +140,7 @@ func TestImport(t *testing.T) {
ctx, cancel := testContext(t)
defer cancel()
client, err := New(address)
client, err := newClient(t, address)
if err != nil {
t.Fatal(err)
}