From 86f47df394db3627b839d30d6cee40f295fea4aa Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Thu, 11 Apr 2024 12:40:15 +0100 Subject: [PATCH] chore: update test server --- pkg/api/api_test.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkg/api/api_test.go b/pkg/api/api_test.go index 21f6c4dc7f0..5ddfdaaf7a0 100644 --- a/pkg/api/api_test.go +++ b/pkg/api/api_test.go @@ -235,13 +235,7 @@ func newTestServer(t *testing.T, o testServerOptions) (*http.Client, *websocket. WsPingPeriod: o.WsPingPeriod, Restricted: o.Restricted, }, extraOpts, 1, erc20) - - if o.DebugAPI { - s.MountTechnicalDebug() - s.MountDebug() - } else { - s.MountAPI() - } + s.MountAPIs() if o.DirectUpload { chanStore = newChanStore(o.Storer.PusherFeed()) @@ -398,7 +392,7 @@ func TestParseName(t *testing.T) { s := api.New(pk.PublicKey, pk.PublicKey, common.Address{}, nil, log, nil, nil, 1, false, false, nil, []string{"*"}, inmemstore.New()) s.Configure(signer, nil, nil, api.Options{}, api.ExtraOptions{Resolver: tC.res}, 1, nil) - s.MountAPI() + s.MountAPIs() tC := tC t.Run(tC.desc, func(t *testing.T) {