From c9e452aa73a1345973448ffe0854d4a941ed5c79 Mon Sep 17 00:00:00 2001 From: Easwar Swaminathan Date: Thu, 19 Jan 2023 17:14:48 -0800 Subject: [PATCH] fix flaky test --- xds/internal/resolver/xds_resolver_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xds/internal/resolver/xds_resolver_test.go b/xds/internal/resolver/xds_resolver_test.go index 510606e81294..6131c220bbc7 100644 --- a/xds/internal/resolver/xds_resolver_test.go +++ b/xds/internal/resolver/xds_resolver_test.go @@ -109,12 +109,12 @@ type testClientConn struct { } func (t *testClientConn) UpdateState(s resolver.State) error { - t.stateCh.Send(s) + t.stateCh.Replace(s) return nil } func (t *testClientConn) ReportError(err error) { - t.errorCh.Send(err) + t.errorCh.Replace(err) } func (t *testClientConn) ParseServiceConfig(jsonSC string) *serviceconfig.ParseResult {