Skip to content

Commit

Permalink
Fix some flappers and update Go version for nightly code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed Oct 10, 2022
1 parent 25e82d7 commit a98af54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cov.yaml
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.19.x

- name: Run code coverage
shell: bash --noprofile --norc -x -eo pipefail {0}
Expand Down
10 changes: 10 additions & 0 deletions server/gateway_test.go
Expand Up @@ -568,6 +568,8 @@ func TestGatewayHeaderSupport(t *testing.T) {

// s1 should have an outbound gateway to s2.
waitForOutboundGateways(t, s1, 1, time.Second)
// and an inbound too
waitForInboundGateways(t, s1, 1, time.Second)
// s2 should have an inbound gateway
waitForInboundGateways(t, s2, 1, time.Second)
// and an outbound too
Expand All @@ -585,6 +587,9 @@ func TestGatewayHeaderSupport(t *testing.T) {
t.Fatalf("Error receiving msg from server: %v\n", err)
}

// Wait for interest to be registered on s2
checkGWInterestOnlyModeInterestOn(t, s2, "A", globalAccountName, "foo")

b, _, _ := newClientForServer(s2)
defer b.close()

Expand Down Expand Up @@ -633,6 +638,8 @@ func TestGatewayHeaderDeliverStrippedMsg(t *testing.T) {

// s1 should have an outbound gateway to s2.
waitForOutboundGateways(t, s1, 1, time.Second)
// and an inbound too
waitForInboundGateways(t, s1, 1, time.Second)
// s2 should have an inbound gateway
waitForInboundGateways(t, s2, 1, time.Second)
// and an outbound too
Expand All @@ -650,6 +657,9 @@ func TestGatewayHeaderDeliverStrippedMsg(t *testing.T) {
t.Fatalf("Error receiving msg from server: %v\n", err)
}

// Wait for interest to be registered on s2
checkGWInterestOnlyModeInterestOn(t, s2, "A", globalAccountName, "foo")

b, _, _ := newClientForServer(s2)
defer b.close()

Expand Down

0 comments on commit a98af54

Please sign in to comment.