1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-15 10:12:29 +08:00

fix: fix bugs in test

This commit is contained in:
dudaodong
2025-04-21 15:08:16 +08:00
parent 0b5dc86d70
commit 27667f8b3a
6 changed files with 80 additions and 80 deletions

View File

@@ -2,6 +2,7 @@ package eventbus
import (
"fmt"
"sort"
"sync"
"time"
)
@@ -224,6 +225,7 @@ func ExampleEventBus_GetEvents() {
eb.Subscribe("event2", func(eventData int) {}, false, 0, nil)
events := eb.GetEvents()
sort.Strings(events)
for _, event := range events {
fmt.Println(event)