From 431ea75a11ca165dad9dd5d629b3cf975f4c186b Mon Sep 17 00:00:00 2001 From: jinglina Date: Mon, 5 Apr 2021 19:30:48 +0800 Subject: [PATCH] remove redundant type conversion (#8692) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Jing (荆丽娜) --- tsdb/wal/watcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/wal/watcher_test.go b/tsdb/wal/watcher_test.go index 9a63edd5e..162752080 100644 --- a/tsdb/wal/watcher_test.go +++ b/tsdb/wal/watcher_test.go @@ -132,7 +132,7 @@ func TestTailSamples(t *testing.T) { sample := enc.Samples([]record.RefSample{ { Ref: uint64(inner), - T: int64(now.UnixNano()) + 1, + T: now.UnixNano() + 1, V: float64(i), }, }, nil)