Skip to content

Commit

Permalink
add ts
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Oct 4, 2024
1 parent a1c15fc commit 17f4450
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/vt/discovery/healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 17f4450

Please sign in to comment.