Skip to content

Commit

Permalink
sector storage test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyatt authored and Wyatt committed Nov 10, 2021
1 parent dc1aecf commit 24bc634
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extern/sector-storage/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func TestSnapDeals(t *testing.T) {
defer cleanup()

localTasks := []sealtasks.TaskType{
sealtasks.TTAddPiece, sealtasks.TTPreCommit1, sealtasks.TTCommit1, sealtasks.TTFinalize, sealtasks.TTFetch, sealtasks.TTReplicaUpdate,
sealtasks.TTAddPiece, sealtasks.TTPreCommit1, sealtasks.TTPreCommit2, sealtasks.TTCommit1, sealtasks.TTCommit2, sealtasks.TTFinalize, sealtasks.TTFetch, sealtasks.TTReplicaUpdate,
}
wds := datastore.NewMapDatastore()

Expand All @@ -218,12 +218,10 @@ func TestSnapDeals(t *testing.T) {
fmt.Printf("PC2\n")
pc2Out, err := m.SealPreCommit2(ctx, sid, pc1Out)
require.NoError(t, err)

seed := abi.InteractiveSealRandomness{1, 1, 1, 1, 1, 1, 1}
fmt.Printf("C1\n")
c1Out, err := m.SealCommit1(ctx, sid, ticket, seed, nil, pc2Out)
require.NoError(t, err)

fmt.Printf("C2\n")
_, err = m.SealCommit2(ctx, sid, c1Out)
require.NoError(t, err)
Expand All @@ -241,7 +239,7 @@ func TestSnapDeals(t *testing.T) {
pieces := []abi.PieceInfo{p1, p2}

out, err := m.ReplicaUpdate(ctx, sid, pieces)
fmt.Printf("out: %x\n", out)
_ = out
require.NoError(t, err)
}

Expand Down

0 comments on commit 24bc634

Please sign in to comment.