Skip to content

Commit c9e452a

Browse files
committed
fix flaky test
1 parent e861744 commit c9e452a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xds/internal/resolver/xds_resolver_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ type testClientConn struct {
109109
}
110110

111111
func (t *testClientConn) UpdateState(s resolver.State) error {
112-
t.stateCh.Send(s)
112+
t.stateCh.Replace(s)
113113
return nil
114114
}
115115

116116
func (t *testClientConn) ReportError(err error) {
117-
t.errorCh.Send(err)
117+
t.errorCh.Replace(err)
118118
}
119119

120120
func (t *testClientConn) ParseServiceConfig(jsonSC string) *serviceconfig.ParseResult {

0 commit comments

Comments
 (0)