mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
grocy: fix passthru test with second curl invocation
This commit is contained in:
@@ -25,7 +25,10 @@ import ./make-test-python.nix (
|
||||
machine.wait_for_open_port(80)
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
|
||||
# This establishes _something_
|
||||
machine.succeed("curl -sSf http://localhost")
|
||||
# The second request creates the database, unsure why both are required
|
||||
machine.succeed("curl -sSf http://localhost/")
|
||||
|
||||
machine.succeed(
|
||||
"curl -c cookies -sSf -X POST http://localhost/login -d 'username=admin&password=admin'"
|
||||
|
||||
Reference in New Issue
Block a user