Skip to content

Commit

Permalink
Run windows parallel integration test as short
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dmcgowan committed Dec 9, 2021
1 parent 807213f commit 2c96d5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions integration/client/client_ttrpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion integration/client/import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2c96d5b

Please sign in to comment.