mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
nixos/tests/mihomo: implement check correctly, fix target value
This commit is contained in:
parent
ed72e91db1
commit
93da11def1
@ -39,6 +39,8 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
machine.fail("curl --fail --max-time 10 --proxy socks5://user:supervillain@localhost:7890 http://localhost")
|
||||
|
||||
# Web UI
|
||||
machine.succeed("curl --fail http://localhost:9090") == '{"hello":"clash"}'
|
||||
result = machine.succeed("curl --fail http://localhost:9090")
|
||||
target = '{"hello":"mihomo"}\n'
|
||||
assert result == target, f"{result!r} != {target!r}"
|
||||
'';
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user