fix(coderd/aibridged): retain dialer notification (#27529)

Fixes flake caused by race in `TestReady/FalseBeforeConnection` test.
This commit is contained in:
Paweł Banaszewski
2026-07-27 17:43:59 +02:00
committed by GitHub
parent 60c20be46f
commit c9e68987c1
+1 -1
View File
@@ -1007,7 +1007,7 @@ func TestReady(t *testing.T) {
pool := mock.NewMockPooler(ctrl)
pool.EXPECT().Shutdown(gomock.Any()).MinTimes(1).Return(nil)
dialerCalled := make(chan struct{})
dialerCalled := make(chan struct{}, 1)
blockDialer := func(ctx context.Context) (aibridged.DRPCClient, error) {
select {
case dialerCalled <- struct{}{}: