aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-19 07:00:21 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-19 07:00:21 -0400
commit7649cbcb0ea58d7397ed399249a5025b2aeff7ef (patch)
tree6b70f50f0229aa7074f23c19a3f19a613a808f54 /pkg/api
parent6b0d487368262d396571ae5d103046403538cc08 (diff)
downloadAtlas-7649cbcb0ea58d7397ed399249a5025b2aeff7ef.tar.gz
Atlas-7649cbcb0ea58d7397ed399249a5025b2aeff7ef.zip
pkg/api/api0/api0testutil: AccountStorage AuthTokenExpiry only needs second precision
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/api0/api0testutil/storage.go2
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