aboutsummaryrefslogtreecommitdiffstats
path: root/tai64n_test.go
diff options
context:
space:
mode:
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")
}