1 import ./make-test-python.nix ({ pkgs, ... }: let
5 meta.maintainers = with pkgs.lib.maintainers; [ oddlama ];
7 nodes.machine = { ... }: {
10 apiKeyFile = pkgs.writeText "typesense-api-key" "dummy";
13 api-address = "0.0.0.0";
19 machine.wait_for_unit("typesense.service")
20 machine.wait_for_open_port(${toString testPort})
21 # After waiting for the port, typesense still hasn't initialized the database, so wait until we can connect successfully
22 assert machine.wait_until_succeeds("curl --fail http://localhost:${toString testPort}/health") == '{"ok":true}'