From ece4423d3326678c534738801c9d4f5f98257fac Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Fri, 17 Jan 2020 23:55:02 +0100 Subject: [PATCH] Add back wait block in buildkite pipeline. --- .buildkite/pipeline.yml | 2 ++ internal/handlers/handler_firstfactor_test.go | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 455cf6b5..e32f5c41 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,6 +2,8 @@ steps: - label: ":hammer_and_wrench: Unit Test" command: "authelia-scripts --log-level debug ci" + - wait + - label: ":docker: Image Builds" command: ".buildkite/steps/buildimages.sh | buildkite-agent pipeline upload" agents: diff --git a/internal/handlers/handler_firstfactor_test.go b/internal/handlers/handler_firstfactor_test.go index 6129592a..655d2045 100644 --- a/internal/handlers/handler_firstfactor_test.go +++ b/internal/handlers/handler_firstfactor_test.go @@ -171,10 +171,10 @@ func (s *FirstFactorSuite) TestShouldAuthenticateUserWithRememberMeChecked() { Return(nil) s.mock.Ctx.Request.SetBodyString(`{ - "username": "test", - "password": "hello", - "keepMeLoggedIn": true - }`) + "username": "test", + "password": "hello", + "keepMeLoggedIn": true + }`) FirstFactorPost(s.mock.Ctx) // Respond with 200. @@ -210,10 +210,10 @@ func (s *FirstFactorSuite) TestShouldAuthenticateUserWithRememberMeUnchecked() { Return(nil) s.mock.Ctx.Request.SetBodyString(`{ - "username": "test", - "password": "hello", - "keepMeLoggedIn": false - }`) + "username": "test", + "password": "hello", + "keepMeLoggedIn": false + }`) FirstFactorPost(s.mock.Ctx) // Respond with 200.