fix: use new orchestrator queue

This commit is contained in:
garethgeorge
2024-04-13 01:04:38 -07:00
parent aacdf9b7cd
commit 4a81889d81
8 changed files with 303 additions and 60 deletions

View File

@@ -13,7 +13,12 @@ func (v val) Less(other val) bool {
return v.v < other.v
}
func (v val) Eq(other val) bool {
return v.v == other.v
}
func TestGenericHeapInit(t *testing.T) {
t.Parallel()
genHeap := genericHeap[val]{{v: 3}, {v: 2}, {v: 1}}
heap.Init(&genHeap)
@@ -30,6 +35,7 @@ func TestGenericHeapInit(t *testing.T) {
}
func TestGenericHeapPushPop(t *testing.T) {
t.Parallel()
genHeap := genericHeap[val]{} // empty heap
heap.Push(&genHeap, val{v: 3})
heap.Push(&genHeap, val{v: 2})