From d40d0ce7e6fb6ad72132451de14d94abc8b1e0b4 Mon Sep 17 00:00:00 2001
From: Julien Malka <julien@malka.sh>
Date: Sun, 15 Jan 2023 15:48:48 +0100
Subject: [PATCH] nixos/ntfy-sh: Fixed nixos test

---
 nixos/tests/ntfy-sh.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/nixos/tests/ntfy-sh.nix b/nixos/tests/ntfy-sh.nix
index 9a36fcdf3922..4492fb44cedc 100644
--- a/nixos/tests/ntfy-sh.nix
+++ b/nixos/tests/ntfy-sh.nix
@@ -12,6 +12,8 @@ import ./make-test-python.nix {
 
     machine.wait_for_unit("multi-user.target")
 
+    machine.wait_for_open_port(80)
+
     machine.succeed(f"curl -d '{msg}' localhost:80/test")
 
     notif = json.loads(machine.succeed("curl -s localhost:80/test/json?poll=1"))