fork of indigo with slightly nicer lexgen

update old MST test to use fixed CIDs (instead of random seed)

Changed files
+6 -5
mst
+6 -5
mst/mst_test.go
··· 13 13 "testing" 14 14 15 15 "github.com/bluesky-social/indigo/util" 16 - cid "github.com/ipfs/go-cid" 16 + 17 + "github.com/ipfs/go-cid" 17 18 "github.com/ipfs/go-datastore" 18 19 blockstore "github.com/ipfs/go-ipfs-blockstore" 19 20 "github.com/ipld/go-car/v2" ··· 32 33 } 33 34 34 35 func TestBasicMst(t *testing.T) { 35 - rand.Seed(6123123) 36 36 37 37 ctx := context.Background() 38 38 cst := util.CborStore(blockstore.NewBlockstore(datastore.NewMapDatastore())) 39 39 mst := createMST(cst, cid.Undef, []nodeEntry{}, -1) 40 40 41 + // NOTE: these were previously generated randomly, but the random seed behavior changed 41 42 vals := map[string]cid.Cid{ 42 - "cats/cats": randCid(), 43 - "dogs/dogs": randCid(), 44 - "cats/bears": randCid(), 43 + "cats/cats": mustCid(t, "bafkreicwamkg77pijyudfbdmskelsnuztr6gp62lqfjv3e3urbs3gxnv2m"), 44 + "dogs/dogs": mustCid(t, "bafkreihwoet2mghoduxannw3uqsq44a3if37i5omnlqmjcfuhcdegzpyn4"), 45 + "cats/bears": mustCid(t, "bafkreiealwcgkpqxmr75a2vubzdertnbrip65nclv6gbsss4w7ef7fh6oy"), 45 46 } 46 47 47 48 for k, v := range vals {