From 323b88fb4fb093a20a967327d4956f9e3061f822 Mon Sep 17 00:00:00 2001 From: Sebastian Rabenhorst Date: Mon, 13 May 2024 18:55:36 +0200 Subject: [PATCH] Check all errors in TestDBRejectOOOSamples Signed-off-by: Sebastian Rabenhorst --- tsdb/agent/db_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsdb/agent/db_test.go b/tsdb/agent/db_test.go index c37728bb4e90..1029bcea7c54 100644 --- a/tsdb/agent/db_test.go +++ b/tsdb/agent/db_test.go @@ -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) @@ -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)