fix minecraft test
This commit is contained in:
parent
29b45a8386
commit
098e033a4c
@ -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)
|
||||
'';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user