fail test if deal errors

This commit is contained in:
whyrusleeping
2019-11-07 00:39:34 +01:00
committed by Łukasz Magiera
parent 41d13b12a0
commit 480e7899ef
3 changed files with 4 additions and 2 deletions
+3
View File
@@ -72,10 +72,13 @@ func TestDealFlow(t *testing.T, b APIBuilder) {
t.Fatal("deal rejected")
case api.DealFailed:
t.Fatal("deal failed")
case api.DealError:
t.Fatal("deal errored")
case api.DealComplete:
fmt.Println("COMPLETE", di)
break
}
fmt.Println("Deal state: ", di.State)
time.Sleep(time.Second / 2)
}
}