Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Yulin Li <[email protected]>
  • Loading branch information
Yulin Li committed Jun 17, 2024
1 parent 681fc00 commit b2fe6e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/auth/sso/null_sso_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ func Test_nullSSO_Authorize(t *testing.T) {
func Test_nullSSO_HandleCallback(t *testing.T) {
recorder := httptest.NewRecorder()
NullSSO.HandleCallback(recorder, &http.Request{})
assert.Equal(t, http.StatusNotImplemented, recorder.Result().StatusCode)
result := recorder.Result()
defer result.Body.Close()
assert.Equal(t, http.StatusNotImplemented, result.StatusCode)
}

func Test_nullSSO_HandleRedirect(t *testing.T) {
recorder := httptest.NewRecorder()
NullSSO.HandleRedirect(recorder, &http.Request{})
assert.Equal(t, http.StatusNotImplemented, recorder.Result().StatusCode)
result := recorder.Result()
defer result.Body.Close()
assert.Equal(t, http.StatusNotImplemented, result.StatusCode)
}

0 comments on commit b2fe6e2

Please sign in to comment.