mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
Fix main build (#8948)
Was broken after the merge of #8824 Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
202446955a
commit
b1c179be85
|
@ -3173,7 +3173,7 @@ func TestLockfileMetric(t *testing.T) {
|
||||||
opts.NoLockfile = c.lockFileDisabled
|
opts.NoLockfile = c.lockFileDisabled
|
||||||
|
|
||||||
// Create the DB, this should create a lockfile and the metrics
|
// Create the DB, this should create a lockfile and the metrics
|
||||||
db, err := Open(tmpdir, nil, nil, opts)
|
db, err := Open(tmpdir, nil, nil, opts, nil)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, float64(c.expectedValue), prom_testutil.ToFloat64(db.metrics.lockfileCreatedCleanly))
|
require.Equal(t, float64(c.expectedValue), prom_testutil.ToFloat64(db.metrics.lockfileCreatedCleanly))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue