From 3091c5dfd84dc6ee6f7890f84e1e30b670753992 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 24 Apr 2026 07:52:13 -0400 Subject: [PATCH] remove reconnect delay for testing --- outbound/worker_start_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/outbound/worker_start_test.go b/outbound/worker_start_test.go index e057d82..32bcf75 100644 --- a/outbound/worker_start_test.go +++ b/outbound/worker_start_test.go @@ -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{}), } }