1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

test: fix TestEventBus

This commit is contained in:
dudaodong
2025-03-07 10:42:22 +08:00
parent 0d0f213d36
commit 8120c4db78
3 changed files with 64 additions and 64 deletions

View File

@@ -37,7 +37,7 @@ func ExampleEventBus_Unsubscribe() {
// 0
}
func ExampleEventBus_Subscribe_WithFilter() {
func ExampleEventBus_Subscribe_withFilter() {
eb := NewEventBus[int]()
receivedData := 0
@@ -60,7 +60,7 @@ func ExampleEventBus_Subscribe_WithFilter() {
// 1
}
func ExampleEventBus_Subscribe_WithPriority() {
func ExampleEventBus_Subscribe_withPriority() {
eb := NewEventBus[int]()
eb.Subscribe("event1", func(eventData int) {
@@ -78,7 +78,7 @@ func ExampleEventBus_Subscribe_WithPriority() {
// 1
}
func ExampleEventBus_Subscribe_Async() {
func ExampleEventBus_Subscribe_async() {
eb := NewEventBus[int]()
var wg sync.WaitGroup