@@ -26,6 +26,7 @@ import (
2626 "github.com/ethersphere/bee/v2/pkg/manifest"
2727 mockbatchstore "github.com/ethersphere/bee/v2/pkg/postage/batchstore/mock"
2828 mockpost "github.com/ethersphere/bee/v2/pkg/postage/mock"
29+ testingsoc "github.com/ethersphere/bee/v2/pkg/soc/testing"
2930 "github.com/ethersphere/bee/v2/pkg/storage/inmemchunkstore"
3031 mockstorer "github.com/ethersphere/bee/v2/pkg/storer/mock"
3132 "github.com/ethersphere/bee/v2/pkg/swarm"
@@ -796,19 +797,20 @@ func TestFeedIndirection(t *testing.T) {
796797
797798 // get root chunk of data
798799 // and wrap it in a feed
799- rootChunk , err := storer .ChunkStore ().Get (context .Background (), resp .Reference )
800+ rootCh , err := storer .ChunkStore ().Get (context .Background (), resp .Reference )
800801 if err != nil {
801802 t .Fatal (err )
802803 }
804+ socRootCh := testingsoc .GenerateMockSOC (t , rootCh .Data ()[swarm .SpanSize :]).Chunk ()
803805
804- // now use the "content" to mock the feed lookup
806+ // now use the "content" root chunk to mock the feed lookup
805807 // also, use the mocked mantaray chunks that unmarshal
806808 // into a real manifest with the mocked feed values when
807809 // called from the bzz endpoint. then call the bzz endpoint with
808810 // the pregenerated feed root manifest hash
809811
810812 var (
811- look = newMockLookup (- 1 , 0 , rootChunk , nil , & id {}, nil )
813+ look = newMockLookup (- 1 , 0 , socRootCh , nil , & id {}, nil )
812814 factory = newMockFactory (look )
813815 bzzDownloadResource = func (addr , path string ) string { return "/bzz/" + addr + "/" + path }
814816 ctx = context .Background ()
0 commit comments