From 2fa7c464f019f67c5c0494aaf5ac0f5ecc1ee7a7 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 16 Jan 2018 12:03:31 -0500 Subject: Updated dependencies and added avct/uasurfer (#8089) * Updated dependencies and added avct/uasurfer * Added uasurfer to NOTICE.txt --- vendor/github.com/dgryski/dgoogauth/googauth_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vendor/github.com/dgryski') diff --git a/vendor/github.com/dgryski/dgoogauth/googauth_test.go b/vendor/github.com/dgryski/dgoogauth/googauth_test.go index 031922c47..43f35d2c9 100644 --- a/vendor/github.com/dgryski/dgoogauth/googauth_test.go +++ b/vendor/github.com/dgryski/dgoogauth/googauth_test.go @@ -1,7 +1,7 @@ package dgoogauth import ( - "strconv" + "fmt" "testing" "time" ) @@ -199,11 +199,11 @@ func TestAuthenticate(t *testing.T) { t0 = int64(time.Now().Unix() / 30) } c := ComputeCode(otpconf.Secret, t0) + code := fmt.Sprintf("%06d", c) - invalid := c + 1 attempts = []attempt{ - {strconv.Itoa(invalid), false}, - {strconv.Itoa(c), true}, + {code + "1", false}, + {code, true}, } for _, a := range attempts { -- cgit v1.2.3-1-g7c22