From 45799c42aba47b8eeb5df1afc90bcfdb7a5ce1bb Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sat, 11 Sep 2021 14:37:29 +0300 Subject: Update bst_test Signed-off-by: Valery Piashchynski --- pkg/priority_queue/binary_heap_test.go | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.3