fix minecraft test

This commit is contained in:
Simon Gardling 2025-09-10 16:03:23 -04:00
parent 29b45a8386
commit 098e033a4c
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -85,16 +85,9 @@ testPkgs.testers.runNixOSTest {
# Wait for minecraft service to be available
machine.wait_for_unit("minecraft-server-main.service")
machine.sleep(20)
# Check that the service is active and not failed
machine.succeed("systemctl is-active minecraft-server-main.service")
# Wait for the server to fully start up - minecraft with mods can take longer
machine.sleep(60)
# Verify the service hasn't crashed after startup
machine.succeed("systemctl is-active minecraft-server-main.service")
# Verify the server port is listening
machine.wait_for_open_port(25565)
'';
}