Skip to content

Commit 89119b5

Browse files
committed
Fix tests
1 parent 30cdb0d commit 89119b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dispatcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func TestHandleEvent(t *testing.T) {
506506
}
507507

508508
// Create a test context
509-
ctx := context.WithValue(context.Background(), "workerID", 0)
509+
ctx := context.WithValue(context.Background(), workerIDKey, 0)
510510

511511
// Create and save a test event
512512
eventID := "test_handle_event"
@@ -548,7 +548,7 @@ func TestHandleEventFailedSend(t *testing.T) {
548548
}
549549

550550
// Create a test context
551-
ctx := context.WithValue(context.Background(), "workerID", 0)
551+
ctx := context.WithValue(context.Background(), workerIDKey, 0)
552552

553553
// Create and save a test event
554554
eventID := "test_handle_event_failure"

0 commit comments

Comments
 (0)