fix: client test list-deals parsing

This commit is contained in:
Dirk McCormick 2020-12-01 11:48:14 +01:00
parent 7bab281449
commit ceea03cd40

View File

@ -82,7 +82,7 @@ func RunClientTest(t *testing.T, cmds []*lcli.Command, clientNode test.TestNode)
fmt.Println("list-deals:\n", out) fmt.Println("list-deals:\n", out)
lines := strings.Split(out, "\n") lines := strings.Split(out, "\n")
require.Len(t, lines, 2) require.GreaterOrEqual(t, len(lines), 2)
re := regexp.MustCompile(`\s+`) re := regexp.MustCompile(`\s+`)
parts := re.Split(lines[1], -1) parts := re.Split(lines[1], -1)
if len(parts) < 4 { if len(parts) < 4 {