mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/aibridged): retain dialer notification (#27529)
Fixes flake caused by race in `TestReady/FalseBeforeConnection` test.
This commit is contained in:
@@ -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{}{}:
|
||||
|
||||
Reference in New Issue
Block a user