Skip to content

Commit

Permalink
minor test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
  • Loading branch information
NikitaSkrynnik committed Feb 22, 2022
1 parent 158bf44 commit 76195a2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pkg/networkservice/chains/nsmgr/forwarder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (

"github.com/networkservicemesh/api/pkg/api/registry"
registryapi "github.com/networkservicemesh/api/pkg/api/registry"
"github.com/networkservicemesh/sdk/pkg/tools/log"
"github.com/networkservicemesh/sdk/pkg/tools/sandbox"
"github.com/stretchr/testify/require"
"go.uber.org/goleak"
Expand All @@ -33,7 +32,7 @@ import (
func Test_RemoteForwarderShouldBeSelectedCorrectlyOnNSMgrRestart(t *testing.T) {
t.Cleanup(func() { goleak.VerifyNone(t) })

ctx, cancel := context.WithTimeout(context.Background(), time.Minute*10)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
defer cancel()

domain := sandbox.NewBuilder(ctx, t).
Expand All @@ -42,8 +41,6 @@ func Test_RemoteForwarderShouldBeSelectedCorrectlyOnNSMgrRestart(t *testing.T) {
SetNSMgrProxySupplier(nil).
Build()

log.EnableTracing(false)

var expectedForwarderName string

require.Len(t, domain.Nodes[0].Forwarders, 1)
Expand Down Expand Up @@ -100,7 +97,7 @@ func Test_RemoteForwarderShouldBeSelectedCorrectlyOnNSMgrRestart(t *testing.T) {
func Test_LocalForwarderShouldBeSelectedCorrectlyOnNSMgrRestart(t *testing.T) {
t.Cleanup(func() { goleak.VerifyNone(t) })

ctx, cancel := context.WithTimeout(context.Background(), time.Minute*10)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
defer cancel()

domain := sandbox.NewBuilder(ctx, t).
Expand All @@ -109,8 +106,6 @@ func Test_LocalForwarderShouldBeSelectedCorrectlyOnNSMgrRestart(t *testing.T) {
SetNSMgrProxySupplier(nil).
Build()

log.EnableTracing(false)

var expectedForwarderName string

require.Len(t, domain.Nodes[0].Forwarders, 1)
Expand Down

0 comments on commit 76195a2

Please sign in to comment.