From 375d7b41b0bba498a1f4af549a4e1dba827bf8bf Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 16 Jul 2021 14:50:37 -0700 Subject: [PATCH] apply code review Co-authored-by: Marten Seemann --- peer/record_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer/record_test.go b/peer/record_test.go index e5aa079..4022d92 100644 --- a/peer/record_test.go +++ b/peer/record_test.go @@ -56,11 +56,11 @@ func TestSignedPeerRecordFromEnvelope(t *testing.T) { // This is pretty much guaranteed to pass on Linux no matter how we implement it, but Windows has // low clock precision. This makes sure we never get a duplicate. func TestTimestampSeq(t *testing.T) { - last := uint64(0) + var last uint64 for i := 0; i < 1000; i++ { next := TimestampSeq() if next <= last { - t.Errorf("non-increasing timestampfound: %d <= %d", next, last) + t.Errorf("non-increasing timestamp found: %d <= %d", next, last) } last = next }