Added logging to pools and workers.

This commit is contained in:
Jay
2026-04-23 20:58:57 -04:00
parent 230e6e608a
commit 0ac8d9facd
11 changed files with 209 additions and 47 deletions
+5 -5
View File
@@ -32,7 +32,7 @@ func TestRunDialer(t *testing.T) {
},
}
go RunDialer(url, ctx, pool, dial, newConn)
go RunDialer(url, ctx, pool, dial, newConn, nil)
dial <- struct{}{}
honeybeetest.Eventually(t, func() bool {
@@ -73,7 +73,7 @@ func TestRunDialer(t *testing.T) {
ConnectionConfig: connConfig,
}
go RunDialer(url, ctx, pool, dial, newConn)
go RunDialer(url, ctx, pool, dial, newConn, nil)
dial <- struct{}{}
// wait for dial to start blocking on gate
@@ -141,7 +141,7 @@ func TestRunDialer(t *testing.T) {
ConnectionConfig: connConfig,
}
go RunDialer(url, ctx, pool, dial, newConn)
go RunDialer(url, ctx, pool, dial, newConn, nil)
dial <- struct{}{}
honeybeetest.Eventually(t, func() bool {
@@ -175,7 +175,7 @@ func TestRunDialer(t *testing.T) {
done := make(chan struct{})
go func() {
RunDialer(url, ctx, pool, dial, newConn)
RunDialer(url, ctx, pool, dial, newConn, nil)
close(done)
}()
@@ -213,7 +213,7 @@ func TestRunDialer(t *testing.T) {
done := make(chan struct{})
go func() {
RunDialer(url, ctx, pool, dial, newConn)
RunDialer(url, ctx, pool, dial, newConn, nil)
close(done)
}()