remove reconnect delay for testing

This commit is contained in:
Jay
2026-04-24 07:52:13 -04:00
parent 9daa9a3d25
commit 3091c5dfd8
+5 -1
View File
@@ -11,6 +11,7 @@ import (
"net/http"
"sync"
"testing"
"time"
)
func makeWorkerContext(t *testing.T) (
@@ -33,11 +34,14 @@ func makeWorkerContext(t *testing.T) (
func makeWorker(t *testing.T, ctx context.Context, cancel context.CancelFunc) *DefaultWorker {
t.Helper()
config, _ := NewWorkerConfig(
WithReconnectDelay(0 * time.Second),
)
return &DefaultWorker{
ctx: ctx,
cancel: cancel,
id: "wss://test",
config: GetDefaultWorkerConfig(),
config: config,
heartbeat: make(chan struct{}),
}
}