Skip to content

Commit

Permalink
fix: don't register on server salt test
Browse files Browse the repository at this point in the history
  • Loading branch information
purefunctor committed May 1, 2024
1 parent 3deb3f8 commit 3bd7190
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/backend/Login_Api_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ let login_returns_client_salt prefix =

let login_returns_server_salt prefix =
let inner () =
default_register ();%lwt

let%lwt cookie_headers = get_cookie_headers () in
let%lwt response, body =
let json = string_of_login_payload { username; auth_token = None } in
Expand All @@ -60,7 +58,7 @@ let login_returns_server_salt prefix =

let _ =
Alcotest.(check int) "status code is 200" 200 code;
Alcotest.(check string) "salt is from server" client_salt salt
Alcotest.(check string) "salt is from server" server_salt salt
in

Lwt.return ()
Expand Down

0 comments on commit 3bd7190

Please sign in to comment.