summaryrefslogtreecommitdiff
path: root/internal/tai64n/tai64n_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:10:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:13:03 +0100
commitbffe99aeadae09abd02f2bd3184925af6b680535 (patch)
tree556d223ebcd32b957e62e15353087b93a824641c /internal/tai64n/tai64n_test.go
parent77285c99aa30eb802d0281175990e6809501ec18 (diff)
downloadwireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.tar.gz
wireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.zip
Don't use modules
Feel free to revert this if you have a strong feeling about it. But so far as I can see, it adds a lot of complexity for basically no upsides.
Diffstat (limited to '')
-rw-r--r--tai64n_test.go (renamed from internal/tai64n/tai64n_test.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tai64n/tai64n_test.go b/tai64n_test.go
index 389b65c..a9e22b0 100644
--- a/internal/tai64n/tai64n_test.go
+++ b/tai64n_test.go
@@ -1,4 +1,4 @@
-package tai64n
+package main
import (
"testing"
@@ -9,10 +9,10 @@ import (
* as used by WireGuard.
*/
func TestMonotonic(t *testing.T) {
- old := Now()
+ old := TimestampNow()
for i := 0; i < 10000; i++ {
time.Sleep(time.Nanosecond)
- next := Now()
+ next := TimestampNow()
if !next.After(old) {
t.Error("TAI64N, not monotonically increasing on nano-second scale")
}