Skip to content

Commit

Permalink
coap-gw/service: set golang tag for the deviceStatusUpdater tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Aug 30, 2023
1 parent 694df67 commit 1ba0b83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions coap-gateway/service/devicesStatusUpdater_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build test
// +build test

package service_test

import (
Expand Down
8 changes: 4 additions & 4 deletions pkg/net/coap/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func TestOnClientInactivity(t *testing.T) {
// test TCP
c, err := tcp.Dial(cfg.Addr, options.WithTLS(&tls.Config{
InsecureSkipVerify: true,
}), options.WithContext(ctx), options.WithNetwork("tcp4"))
}), options.WithContext(ctx))
require.NoError(t, err)
_, err = c.Get(ctx, "/a")
require.NoError(t, err)
Expand All @@ -176,7 +176,7 @@ func TestOnClientInactivity(t *testing.T) {
// test DTLS
cUDP, err := coapDtls.Dial(cfg.Addr, &dtls.Config{
InsecureSkipVerify: true,
}, options.WithContext(ctx), options.WithNetwork("udp4"))
}, options.WithContext(ctx))
require.NoError(t, err)
_, err = cUDP.Get(ctx, "/a")
require.NoError(t, err)
Expand Down Expand Up @@ -243,7 +243,7 @@ func TestOnClientInactivityCustom(t *testing.T) {
// test TCP
c, err := tcp.Dial(cfg.Addr, options.WithTLS(&tls.Config{
InsecureSkipVerify: true,
}), options.WithContext(ctx), options.WithNetwork("tcp4"))
}), options.WithContext(ctx))
require.NoError(t, err)
_, err = c.Get(ctx, "/a")
require.NoError(t, err)
Expand All @@ -259,7 +259,7 @@ func TestOnClientInactivityCustom(t *testing.T) {
// test DTLS
cUDP, err := coapDtls.Dial(cfg.Addr, &dtls.Config{
InsecureSkipVerify: true,
}, options.WithContext(ctx), options.WithNetwork("udp4"))
}, options.WithContext(ctx))
require.NoError(t, err)
_, err = cUDP.Get(ctx, "/a")
require.NoError(t, err)
Expand Down

0 comments on commit 1ba0b83

Please sign in to comment.