Skip to content

Commit

Permalink
Fix simnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Jul 21, 2024
1 parent ae6257a commit 32d405e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testutil/integration/simnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ func testSimnet(t *testing.T, args simnetArgs, expect *simnetExpect) {
routineResCh := make(chan routineResult)
go func() {
datas := make(map[core.Duty]core.SignedData)
defer func() {
close(routineResCh)
close(errCh)
}()
for {
var res simResult
select {
Expand Down Expand Up @@ -388,9 +392,6 @@ func testSimnet(t *testing.T, args simnetArgs, expect *simnetExpect) {

if expect.Done(t) {
cancel()
close(routineResCh)
close(errCh)

return
}
}
Expand Down

0 comments on commit 32d405e

Please sign in to comment.