From 5096025df2f6b034a9389da26dff0ec748461ec4 Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Sun, 25 Feb 2018 20:46:55 -0500 Subject: [PATCH] Fix gateway test License: MIT Signed-off-by: Dirk McCormick --- core/corehttp/gateway_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/corehttp/gateway_test.go b/core/corehttp/gateway_test.go index 5dbb7ee88..e5d328ded 100644 --- a/core/corehttp/gateway_test.go +++ b/core/corehttp/gateway_test.go @@ -28,11 +28,7 @@ var emptyDir = "/ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn" type mockNamesys map[string]path.Path -func (m mockNamesys) Resolve(ctx context.Context, name string) (value path.Path, err error) { - return m.ResolveN(ctx, name, namesys.DefaultDepthLimit) -} - -func (m mockNamesys) ResolveN(ctx context.Context, name string, depth int) (value path.Path, err error) { +func (m mockNamesys) Resolve(ctx context.Context, name string, opts *namesys.ResolveOpts) (value path.Path, err error) { p, ok := m[name] if !ok { return "", namesys.ErrResolveFailed