diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-19 07:00:21 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-19 07:00:21 -0400 |
commit | 7649cbcb0ea58d7397ed399249a5025b2aeff7ef (patch) | |
tree | 6b70f50f0229aa7074f23c19a3f19a613a808f54 /pkg/api/api0 | |
parent | 6b0d487368262d396571ae5d103046403538cc08 (diff) | |
download | Atlas-7649cbcb0ea58d7397ed399249a5025b2aeff7ef.tar.gz Atlas-7649cbcb0ea58d7397ed399249a5025b2aeff7ef.zip |
pkg/api/api0/api0testutil: AccountStorage AuthTokenExpiry only needs second precision
Diffstat (limited to 'pkg/api/api0')
-rw-r--r-- | pkg/api/api0/api0testutil/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/api0/api0testutil/storage.go b/pkg/api/api0/api0testutil/storage.go index c8c96af..80020fd 100644 --- a/pkg/api/api0/api0testutil/storage.go +++ b/pkg/api/api0/api0testutil/storage.go @@ -219,7 +219,7 @@ func TestAccountStorage(t *testing.T, s api0.AccountStorage) { uacct.Username = "user" + strconv.Itoa(rand.Intn(users/8)) // generate a username with overlap uacct.AuthIP = netip.MustParseAddr("127.0.0.1") uacct.AuthToken = "dummy" - uacct.AuthTokenExpiry = time.Now().Add(time.Minute * 30) + uacct.AuthTokenExpiry = time.Now().Add(time.Minute * 30).Truncate(time.Second) uacct.LastServerID = "self" // update the account |