summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-11 14:37:29 +0300
committerValery Piashchynski <[email protected]>2021-09-11 14:37:29 +0300
commit45799c42aba47b8eeb5df1afc90bcfdb7a5ce1bb (patch)
treece0ce2f41c98f53dad50cf79429d71cc6942bf6e
parentb9521e41aab0b085f9922c535998b6e6a503d723 (diff)
Update bst_test
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--pkg/priority_queue/binary_heap_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/priority_queue/binary_heap_test.go b/pkg/priority_queue/binary_heap_test.go
index 456fc27e..41a50101 100644
--- a/pkg/priority_queue/binary_heap_test.go
+++ b/pkg/priority_queue/binary_heap_test.go
@@ -76,11 +76,14 @@ func TestBinHeap_MaxLen(t *testing.T) {
res = append(res, item)
}
require.Equal(t, expected, res)
+ return
}()
for i := 0; i < len(a); i++ {
bh.Insert(a[i])
}
+
+ time.Sleep(time.Second * 2)
}
func TestNewPriorityQueue(t *testing.T) {