tests: enable filestore

This commit was moved from ipfs/go-ipfs-http-client@904e8eeeb1
This commit is contained in:
Łukasz Magiera 2019-02-04 19:43:00 +01:00
parent c3f2970f8a
commit af2edd12eb

View File

@ -47,6 +47,11 @@ func (NodeProvider) MakeAPISwarm(ctx context.Context, fullIdentity bool, n int)
return nil, err
}
filestoreArgs := []string{"iptb", "--IPTB_ROOT", dir, "run", fmt.Sprintf("[0-%d]", n-1), "--", "ipfs", "config", "--json", "Experimental.FilestoreEnabled", "true"}
if err := c.Run(filestoreArgs); err != nil {
return nil, err
}
startArgs := []string{"iptb", "--IPTB_ROOT", dir, "start", "-wait", "--", "--enable-pubsub-experiment", "--offline=" + strconv.FormatBool(n == 1)}
if err := c.Run(startArgs); err != nil {
return nil, err