Skip to content

Commit

Permalink
fixup: Use the correct end time
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava committed Aug 27, 2024
1 parent c3a4d13 commit 501b151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/fixture/e2e/metrics_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package e2e

import (
"strconv"
"time"

"github.com/ava-labs/avalanchego/tests/fixture/tmpnet"

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 501b151

Please # to comment.