Fix test, improve log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-12-06 19:47:55 +01:00
parent b679c1b49d
commit d53e43c24d
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 4 additions and 3 deletions

View File

@ -78,7 +78,7 @@ func PreSeal(maddr address.Address, ssize uint64, offset uint64, sectors int, sb
TicketBytes: trand,
}
fmt.Println("Piece info: ", pi)
fmt.Printf("sector-id: %d, piece info: %v", sid, pi)
pco, err := sb.SealPreCommit(sid, ticket, []sectorbuilder.PublicPieceInfo{pi})
if err != nil {

View File

@ -4,12 +4,13 @@ import (
"bytes"
"context"
"crypto/rand"
"github.com/filecoin-project/lotus/build"
"io/ioutil"
"net/http/httptest"
"path/filepath"
"testing"
"github.com/filecoin-project/lotus/build"
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/ipfs/go-datastore"
@ -162,7 +163,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te
if err != nil {
t.Fatal(err)
}
genm, err := seed.PreSeal(maddr, 1024, 1, tdir, []byte("make genesis mem random"))
genm, err := seed.PreSeal(maddr, 1024, 1, 0, tdir, []byte("make genesis mem random"))
if err != nil {
t.Fatal(err)
}