Skip to content

Commit

Permalink
test: add empty function for so clisten in pushsync t
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Jul 18, 2024
1 parent 2b8652a commit 6bb982b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/pushsync/pushsync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
pricermock "github.com/ethersphere/bee/v2/pkg/pricer/mock"
"github.com/ethersphere/bee/v2/pkg/pushsync"
"github.com/ethersphere/bee/v2/pkg/pushsync/pb"
"github.com/ethersphere/bee/v2/pkg/soc"
storage "github.com/ethersphere/bee/v2/pkg/storage"
testingc "github.com/ethersphere/bee/v2/pkg/storage/testing"
"github.com/ethersphere/bee/v2/pkg/swarm"
Expand Down Expand Up @@ -836,12 +837,13 @@ func createPushSyncNodeWithAccounting(
if unwrap == nil {
unwrap = func(swarm.Chunk) {}
}
gsocListener := func(soc.SOC) {}

validStamp := func(ch swarm.Chunk) (swarm.Chunk, error) {
return ch, nil
}

ps := pushsync.New(addr, blockHash.Bytes(), recorderDisconnecter, storer, mockTopology, true, unwrap, validStamp, logger, acct, mockPricer, signer, nil, -1)
ps := pushsync.New(addr, blockHash.Bytes(), recorderDisconnecter, storer, mockTopology, true, unwrap, gsocListener, validStamp, logger, acct, mockPricer, signer, nil, -1)
t.Cleanup(func() { ps.Close() })

return ps, storer
Expand Down

0 comments on commit 6bb982b

Please sign in to comment.