mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Address comments
Signed-off-by: Annanay <annanayagarwal@gmail.com>
This commit is contained in:
parent
0b4d448d29
commit
48b9afd14b
|
@ -911,8 +911,7 @@ func TestDisableAutoCompactions(t *testing.T) {
|
|||
// Trigger a compaction to check that it was skipped and
|
||||
// no new blocks were created when compaction is disabled.
|
||||
db.DisableCompactions()
|
||||
ctx := context.Background()
|
||||
app := db.Appender(ctx)
|
||||
app := db.Appender(context.Background())
|
||||
for i := int64(0); i < 3; i++ {
|
||||
_, err := app.Add(label, i*blockRange, 0)
|
||||
testutil.Ok(t, err)
|
||||
|
@ -1028,8 +1027,7 @@ func TestDeleteCompactionBlockAfterFailedReload(t *testing.T) {
|
|||
defaultLabel := labels.FromStrings("foo", "bar")
|
||||
|
||||
// Add some data to the head that is enough to trigger a compaction.
|
||||
ctx := context.Background()
|
||||
app := db.Appender(ctx)
|
||||
app := db.Appender(context.Background())
|
||||
_, err := app.Add(defaultLabel, 1, 0)
|
||||
testutil.Ok(t, err)
|
||||
_, err = app.Add(defaultLabel, 2, 0)
|
||||
|
|
Loading…
Reference in a new issue