From 6de8554d61e0619abdf46315aacfd0e5497e4bd1 Mon Sep 17 00:00:00 2001 From: nkryuchkov Date: Wed, 28 Aug 2019 02:02:16 +0300 Subject: [PATCH] Add missing mock method --- pkg/visor/visor_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/visor/visor_test.go b/pkg/visor/visor_test.go index 5b85cec7c..9c87e72b1 100644 --- a/pkg/visor/visor_test.go +++ b/pkg/visor/visor_test.go @@ -252,7 +252,7 @@ func (r *mockRouter) Ports() []routing.Port { return p } -func (r *mockRouter) Serve(_ context.Context) error { +func (r *mockRouter) Serve(context.Context) error { r.didStart = true return nil } @@ -288,6 +288,10 @@ func (r *mockRouter) Close() error { return nil } -func (r *mockRouter) IsSetupTransport(tr *transport.ManagedTransport) bool { +func (r *mockRouter) IsSetupTransport(*transport.ManagedTransport) bool { return false } + +func (r *mockRouter) SetupIsTrusted(cipher.PubKey) bool { + return true +}