mirror of https://github.com/grpc/grpc-go.git
xdsclient: Fix flakyness in `TestResourceUpdateMetrics` in the case of repeated NACKs (#8363)
This commit is contained in:
parent
4cab0e6dc6
commit
28128e0b1f
|
@ -296,5 +296,5 @@ func (r *testMetricsReporter) waitForMetric(ctx context.Context, metricsDataWant
|
|||
|
||||
// ReportMetric sends the metrics data to the metricsCh channel.
|
||||
func (r *testMetricsReporter) ReportMetric(m any) {
|
||||
r.metricsCh.Send(m)
|
||||
r.metricsCh.Replace(m)
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ import (
|
|||
// to send valid and invalid LDS updates, and verifies that the expected metrics
|
||||
// for both good and bad updates are emitted.
|
||||
func (s) TestResourceUpdateMetrics(t *testing.T) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout*1000)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
|
||||
defer cancel()
|
||||
|
||||
tmr := newTestMetricsReporter()
|
||||
|
|
Loading…
Reference in New Issue