This commit is contained in:
Łukasz Magiera 2020-08-04 19:07:31 +02:00
parent adee59c795
commit e4f475ee59
4 changed files with 20 additions and 21 deletions

View File

@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os"
"strings"
"testing"
@ -81,7 +80,7 @@ func pledgeSectors(t *testing.T, ctx context.Context, miner TestStorageNode, n,
s, err := miner.SectorsList(ctx) // Note - the test builder doesn't import genesis sectors into FSM
require.NoError(t, err)
fmt.Printf("Sectors: %d\n", len(s))
if len(s) >= n + existing {
if len(s) >= n+existing {
break
}

View File

@ -1039,16 +1039,16 @@ var clientListDeals = &cli.Command{
w.Write(map[string]interface{}{
"DealCid": propcid,
"DealId":d.LocalDeal.DealID,
"Provider":d.LocalDeal.Provider,
"State":dealStateString(color, d.LocalDeal.State),
"On Chain?":onChain,
"Slashed?":slashed,
"PieceCID":piece,
"Size":types.SizeStr(types.NewInt(d.LocalDeal.Size)),
"Price":price,
"Duration":d.LocalDeal.Duration,
"Message":d.LocalDeal.Message,
"DealId": d.LocalDeal.DealID,
"Provider": d.LocalDeal.Provider,
"State": dealStateString(color, d.LocalDeal.State),
"On Chain?": onChain,
"Slashed?": slashed,
"PieceCID": piece,
"Size": types.SizeStr(types.NewInt(d.LocalDeal.Size)),
"Price": price,
"Duration": d.LocalDeal.Duration,
"Message": d.LocalDeal.Message,
})
}

View File

@ -45,7 +45,7 @@ func (w *TableWriter) Write(r map[string]interface{}) {
// this can cause columns to be out of order, but will at least work
byColID := map[int]string{}
cloop:
cloop:
for col, val := range r {
for i, column := range w.cols {
if column.Name == col {