Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
apply code review
Browse files Browse the repository at this point in the history
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
  • Loading branch information
Stebalien and marten-seemann committed Jul 16, 2021
1 parent add0c9a commit 375d7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peer/record_test.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 375d7b4

Please sign in to comment.