fix: client test list-deals parsing
This commit is contained in:
parent
7bab281449
commit
ceea03cd40
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user