From 97b1001d7023a32cf327df322d77d649b0e33583 Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Tue, 22 Feb 2022 16:13:10 +0700 Subject: [PATCH] minor test fixes Signed-off-by: Nikita Skrynnik --- pkg/networkservice/chains/nsmgr/forwarder_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/networkservice/chains/nsmgr/forwarder_test.go b/pkg/networkservice/chains/nsmgr/forwarder_test.go index 94f1a2ed03..62770d067e 100644 --- a/pkg/networkservice/chains/nsmgr/forwarder_test.go +++ b/pkg/networkservice/chains/nsmgr/forwarder_test.go @@ -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" @@ -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). @@ -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) @@ -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). @@ -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)