TestAuth_BasicAuth fails when system time is wrong.
auth_integration_test.go:147: Error Trace: auth_integration_test.go:147 Error: Received unexpected error: want t=2022-03-15 09:34:19.096 +0000 GMT to be within [2022-03-15 09:34:35.331283375 +0000 GMT m=+1.020193292, 2022-03-15 09:34:37.694860921 +0000 GMT m=+3.383770835] time span Test: TestAuth_TokenAuth auth_integration_test.go:153: Error Trace: auth_integration_test.go:153 Error: Received unexpected error: want t=2022-03-15 10:34:19.096 +0000 GMT to be within [2022-03-15 10:34:35.331283375 +0000 GMT m=+3601.020193292, 2022-03-15 10:34:37.694860921 +0000 GMT m=+3603.383770835] time span Test: TestAuth_TokenAuth
Essentially the test is checking the token's generation time is new by comparing it to time.Now() but the timestamp in the token is set to the server's time. So if the local time is wrong the assertion fails.