Skip to content

Commit 57ac48a

Browse files
committed
fix flaky test
1 parent 896f753 commit 57ac48a

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
@@ -107,12 +107,12 @@ type testClientConn struct {
107107
}
108108

109109
func (t *testClientConn) UpdateState(s resolver.State) error {
110-
t.stateCh.Send(s)
110+
t.stateCh.Replace(s)
111111
return nil
112112
}
113113

114114
func (t *testClientConn) ReportError(err error) {
115-
t.errorCh.Send(err)
115+
t.errorCh.Replace(err)
116116
}
117117

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

0 commit comments

Comments
 (0)