Don't block on batching in node tests

This commit is contained in:
Łukasz Magiera 2021-05-19 14:33:15 +02:00
parent 2a0c0e379b
commit eafaf6d236

View File

@ -234,10 +234,16 @@ func pledgeSectors(t *testing.T, ctx context.Context, miner TestStorageNode, n,
}
for len(toCheck) > 0 {
pcb, err := miner.SectorPreCommitFlush(ctx)
require.NoError(t, err)
if pcb != nil {
fmt.Printf("PRECOMMIT BATCH: %s\n", *pcb)
}
cb, err := miner.SectorCommitFlush(ctx)
require.NoError(t, err)
if cb != nil {
fmt.Printf("BATCH: %s\n", *cb)
fmt.Printf("COMMIT BATCH: %s\n", *cb)
}
for n := range toCheck {