Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Use inert metric factory (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbelvin authored Apr 29, 2020
1 parent 88a5359 commit 634ac72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/sequencer/election/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"time"

"github.com/google/keytransparency/internal/forcemaster"
"github.com/google/trillian/monitoring/prometheus"
"github.com/google/trillian/monitoring"
)

// Ensure that mastership continues to work after resignTime.
Expand All @@ -30,7 +30,7 @@ func TestForceMaster(t *testing.T) {
resignTime := 1 * time.Hour
res := "test resource"

mt := NewTracker(forcemaster.Factory{}, resignTime, prometheus.MetricFactory{})
mt := NewTracker(forcemaster.Factory{}, resignTime, monitoring.InertMetricFactory{})
go mt.Run(ctx)
mt.AddResource(res)
time.Sleep(time.Millisecond) // Wait to acquire mastership.
Expand Down

0 comments on commit 634ac72

Please sign in to comment.