File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1897,7 +1897,11 @@ func TestBlacklistAndRedemption(t *testing.T) {
18971897 rand .Read (txID )
18981898 nodes [1 ].Submit (Request {ID : hex .EncodeToString (txID ), ClientID : "alice" })
18991899 for i := 0 ; i < len (nodes ); i ++ {
1900- <- nodes [i ].Delivered
1900+ select {
1901+ case <- nodes [i ].Delivered :
1902+ case <- stop :
1903+ return
1904+ }
19011905 }
19021906 md := & smartbftprotos.ViewMetadata {}
19031907 err = proto .Unmarshal (nodes [1 ].lastDecision .Proposal .Metadata , md )
@@ -2017,7 +2021,11 @@ func TestBlacklistMultipleViewChanges(t *testing.T) {
20172021 rand .Read (txID )
20182022 nodes [3 ].Submit (Request {ID : hex .EncodeToString (txID ), ClientID : "alice" })
20192023 for i := 0 ; i < len (nodes ); i ++ {
2020- <- nodes [i ].Delivered
2024+ select {
2025+ case <- nodes [i ].Delivered :
2026+ case <- stop :
2027+ return
2028+ }
20212029 }
20222030 md := & smartbftprotos.ViewMetadata {}
20232031 err = proto .Unmarshal (nodes [3 ].lastDecision .Proposal .Metadata , md )
You can’t perform that action at this time.
0 commit comments