From 17f4450d90aa617b160fe7891bd25905cb80d541 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 4 Oct 2024 18:10:36 +0200 Subject: [PATCH] add ts Signed-off-by: Tim Vaillancourt --- go/vt/discovery/healthcheck_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/vt/discovery/healthcheck_test.go b/go/vt/discovery/healthcheck_test.go index b0f73d72b48..20572b8f5ff 100644 --- a/go/vt/discovery/healthcheck_test.go +++ b/go/vt/discovery/healthcheck_test.go @@ -556,6 +556,8 @@ func TestHealthCheckCloseWaitsForGoRoutines(t *testing.T) { createFakeConn(tablet, input) resultChan := hc.Subscribe() + now := time.Now() + hc.AddTablet(tablet) // Immediately after AddTablet() there will be the first notification. @@ -581,8 +583,8 @@ func TestHealthCheckCloseWaitsForGoRoutines(t *testing.T) { Target: &querypb.Target{Keyspace: "k", Shard: "s", TabletType: topodatapb.TabletType_REPLICA}, Serving: true, Stats: &querypb.RealtimeStats{ReplicationLagSeconds: 1, CpuUsage: 0.2}, - PrimaryTermStartTime: 0, + Timestamp: protoutil.TimeToProto(now), } input <- shr result = <-resultChan