Skip to content

Commit

Permalink
Check all errors in TestDBRejectOOOSamples
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Rabenhorst <[email protected]>
  • Loading branch information
rabenhorst committed May 13, 2024
1 parent a2414ed commit 323b88f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tsdb/agent/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ func TestDBRejectOOOSamples(t *testing.T) {
lbls := labelsForTest(t.Name()+"_histogram", 1)
lset := labels.New(lbls[0]...)
_, err := app.AppendHistogram(0, lset, 1, tsdbutil.GenerateTestHistograms(1)[0], nil)
require.NoError(t, err)
err = app.Commit()
require.NoError(t, err)
_, err = app.AppendHistogram(0, lset, 0, tsdbutil.GenerateTestHistograms(1)[0], nil)
Expand All @@ -897,6 +898,7 @@ func TestDBRejectOOOSamples(t *testing.T) {
lbls = labelsForTest(t.Name()+"_histogram", 1)
lset = labels.New(lbls[0]...)
_, err = app.Append(0, lset, 1, 0)
require.NoError(t, err)
err = app.Commit()
require.NoError(t, err)
_, err = app.Append(0, lset, 0, 0)
Expand Down

0 comments on commit 323b88f

Please sign in to comment.