Skip to content

Commit

Permalink
chore: update test server
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Apr 11, 2024
1 parent 4916047 commit 86f47df
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 86f47df

Please sign in to comment.