From 7e38419cdb54ced4e493a9208bc8181aab0ce797 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Fri, 10 Feb 2023 21:48:23 -0500 Subject: [PATCH] Fix slow test --- server/server_account_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server_account_test.go b/server/server_account_test.go index 8ea3fbf8..c5653055 100644 --- a/server/server_account_test.go +++ b/server/server_account_test.go @@ -31,8 +31,8 @@ func TestAccount_Signup_Success(t *testing.T) { require.True(t, time.Now().Add(71*time.Hour).Unix() < token.Expires) require.True(t, strings.HasPrefix(token.Token, "tk_")) require.Equal(t, "9.9.9.9", token.LastOrigin) - require.True(t, token.LastAccess > time.Now().Unix()-1) - require.True(t, token.LastAccess < time.Now().Unix()+1) + require.True(t, token.LastAccess > time.Now().Unix()-2) + require.True(t, token.LastAccess < time.Now().Unix()+2) rr = request(t, s, "GET", "/v1/account", "", map[string]string{ "Authorization": util.BearerAuth(token.Token),