summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_sign_duo_test.go
diff options
context:
space:
mode:
authorEdward Betts <edward@4angle.com>2023-12-11 18:52:40 +0000
committerGitHub <noreply@github.com>2023-12-12 05:52:40 +1100
commit549ea4262449ff3af509a43e10693f2493547260 (patch)
tree525e0e00e59e73eeca3c2dd4a5bbcfa755b81d9d /internal/handlers/handler_sign_duo_test.go
parentebd49aa15173faaa4a2efeac9fafdcf4e5ee2763 (diff)
refactor: correct spelling mistakes (#6395)
Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_sign_duo_test.go')
-rw-r--r--internal/handlers/handler_sign_duo_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/handlers/handler_sign_duo_test.go b/internal/handlers/handler_sign_duo_test.go
index 0e618d572..bd68d93ba 100644
--- a/internal/handlers/handler_sign_duo_test.go
+++ b/internal/handlers/handler_sign_duo_test.go
@@ -165,7 +165,7 @@ func (s *SecondFactorDuoPostSuite) TestShouldFailAutoSelect() {
LoadPreferredDuoDevice(s.mock.Ctx, "john").
Return(nil, errors.New("no Duo device and method saved"))
- duoMock.EXPECT().PreAuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connnection error"))
+ duoMock.EXPECT().PreAuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connection error"))
bodyBytes, err := json.Marshal(bodySignDuoRequest{TargetURL: "https://target.example.com"})
s.Require().NoError(err)
@@ -393,7 +393,7 @@ func (s *SecondFactorDuoPostSuite) TestShouldCallDuoPreauthAPIAndFail() {
LoadPreferredDuoDevice(s.mock.Ctx, "john").
Return(&model.DuoDevice{ID: 1, Username: "john", Device: "12345ABCDEFGHIJ67890", Method: "push"}, nil)
- duoMock.EXPECT().PreAuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connnection error"))
+ duoMock.EXPECT().PreAuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connection error"))
bodyBytes, err := json.Marshal(bodySignDuoRequest{})
s.Require().NoError(err)
@@ -476,7 +476,7 @@ func (s *SecondFactorDuoPostSuite) TestShouldCallDuoAPIAndFail() {
duoMock.EXPECT().PreAuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Eq(values)).Return(&preAuthResponse, nil)
- duoMock.EXPECT().AuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connnection error"))
+ duoMock.EXPECT().AuthCall(s.mock.Ctx, &session.UserSession{CookieDomain: "example.com", Username: "john"}, gomock.Any()).Return(nil, fmt.Errorf("Connection error"))
bodyBytes, err := json.Marshal(bodySignDuoRequest{})
s.Require().NoError(err)