Skip to content

Commit

Permalink
gs: Use parallel testing for frontends
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed May 28, 2024
1 parent 95bfd6a commit ae8b99e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/gatewayserver/io/grpc/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func TestAuthentication(t *testing.T) {
}

func TestFrontend(t *testing.T) {
t.Parallel()
iotest.Frontend(t, iotest.FrontendConfig{
SupportsStatus: true,
IsAuthenticated: true,
Expand Down
2 changes: 1 addition & 1 deletion pkg/gatewayserver/io/mqtt/mqtt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ func TestAuthentication(t *testing.T) {
}

func TestFrontend(t *testing.T) {
t.Parallel()
timeout := (1 << 4) * test.Delay

iotest.Frontend(t, iotest.FrontendConfig{
DetectsInvalidMessages: false,
SupportsStatus: true,
Expand Down
1 change: 1 addition & 0 deletions pkg/gatewayserver/io/semtechws/lbslns/lbslns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
)

func TestFrontend(t *testing.T) {

Check failure on line 35 in pkg/gatewayserver/io/semtechws/lbslns/lbslns_test.go

View workflow job for this annotation

GitHub Actions / Code Quality

cyclomatic complexity 22 of func `TestFrontend` is high (> 20) (gocyclo)
t.Parallel()
wsPingInterval := (1 << 3) * test.Delay
iotest.Frontend(t, iotest.FrontendConfig{
SupportsStatus: false,
Expand Down
1 change: 1 addition & 0 deletions pkg/gatewayserver/io/udp/udp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func TestConnection(t *testing.T) {
}

func TestFrontend(t *testing.T) {

Check failure on line 205 in pkg/gatewayserver/io/udp/udp_test.go

View workflow job for this annotation

GitHub Actions / Code Quality

cyclomatic complexity 24 of func `TestFrontend` is high (> 20) (gocyclo)
t.Parallel()
iotest.Frontend(t, iotest.FrontendConfig{
DetectsInvalidMessages: false,
SupportsStatus: true,
Expand Down

0 comments on commit ae8b99e

Please sign in to comment.