Skip to content

Commit

Permalink
Add missing mock method
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Aug 27, 2019
1 parent c20de56 commit 6de8554
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/visor/visor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}

0 comments on commit 6de8554

Please sign in to comment.