Skip to content

Commit b7bbd5b

Browse files
committed
update unit tests
1 parent 1e9d95a commit b7bbd5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tsdb/head_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -6113,6 +6113,7 @@ func TestAppendQuietZeroDuplicates(t *testing.T) {
61136113

61146114
a = h.Appender(context.Background())
61156115
_, err = a.Append(0, lbls, ts+10, math.Float64frombits(value.QuietZeroNaN)) // This is at a different timestamp so should append a real zero.
6116+
_, err = a.Append(0, lbls, ts+15, 5.0) // We append a normal value to reflect what would happen in reality.
61166117
require.NoError(t, err)
61176118
require.NoError(t, a.Commit())
61186119

@@ -6121,6 +6122,7 @@ func TestAppendQuietZeroDuplicates(t *testing.T) {
61216122
expectedSamples = []chunks.Sample{
61226123
sample{t: ts, f: 42.0},
61236124
sample{t: ts + 10, f: 0},
6125+
sample{t: ts + 15, f: 5},
61246126
}
61256127
require.Equal(t, expectedSamples, result[`{foo="bar"}`])
61266128

0 commit comments

Comments
 (0)