diff --git a/tests/fixture/e2e/metrics_link.go b/tests/fixture/e2e/metrics_link.go index 75258ea8f901..97ccd7e7d3d9 100644 --- a/tests/fixture/e2e/metrics_link.go +++ b/tests/fixture/e2e/metrics_link.go @@ -5,6 +5,7 @@ package e2e import ( "strconv" + "time" "github.com/ava-labs/avalanchego/tests/fixture/tmpnet" @@ -44,7 +45,7 @@ var _ = ginkgo.AfterEach(func() { // Extend the end time by the shutdown delay (a proxy for the metrics // scrape interval) to maximize the chances of the specified duration // including all metrics relevant to the current spec. - endTime := specReport.StartTime.Add(networkShutdownDelay).UnixMilli() + endTime := time.Now().Add(networkShutdownDelay).UnixMilli() metricsLink := tmpnet.MetricsLinkForNetwork( env.GetNetwork().UUID, strconv.FormatInt(startTime, 10),