Skip to content

Commit 2b91b2c

Browse files
committed
test: init
1 parent 0d2d78c commit 2b91b2c

5 files changed

Lines changed: 984 additions & 0 deletions

File tree

pkg/api/api_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242
"github.com/ethersphere/bee/v2/pkg/postage/postagecontract"
4343
contractMock "github.com/ethersphere/bee/v2/pkg/postage/postagecontract/mock"
4444
"github.com/ethersphere/bee/v2/pkg/pss"
45+
"github.com/ethersphere/bee/v2/pkg/pubsub"
4546
"github.com/ethersphere/bee/v2/pkg/pusher"
4647
"github.com/ethersphere/bee/v2/pkg/resolver"
4748
resolverMock "github.com/ethersphere/bee/v2/pkg/resolver/mock"
@@ -136,6 +137,7 @@ type testServerOptions struct {
136137
ChequebookDisabled bool
137138
SwapDisabled bool
138139
Erc20ServiceNil bool
140+
PubsubService *pubsub.Service
139141
}
140142

141143
func newTestServer(t *testing.T, o testServerOptions) (*http.Client, *websocket.Conn, string, *chanStorer) {
@@ -210,6 +212,7 @@ func newTestServer(t *testing.T, o testServerOptions) (*http.Client, *websocket.
210212
Staking: o.StakingContract,
211213
NodeStatus: o.NodeStatus,
212214
PinIntegrity: o.PinIntegrity,
215+
PubsubService: o.PubsubService,
213216
}
214217

215218
// By default bee mode is set to full mode.

0 commit comments

Comments
 (0)