Skip to content

Commit 0cb6c55

Browse files
committed
server: use ManualTime in Test_loadEndpoint
This was the only using trying to use this as a hlc.WallClock, which it won't be when refactored to use crtime.Mono. Epic: none Release note: None
1 parent 2d64d4e commit 0cb6c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/load_endpoint_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func Test_loadEndpoint(t *testing.T) {
127127
defer leaktest.AfterTest(t)()
128128
ctx := context.Background()
129129

130-
clock := timeutil.NewTestTimeSource()
130+
clock := timeutil.NewManualTime(timeutil.Now())
131131
rss := status.NewRuntimeStatSampler(ctx, clock)
132132
metricSource := newTestMetricSource(clock)
133133
le, err := newLoadEndpoint(rss, metricSource)

0 commit comments

Comments
 (0)