Skip to content

Commit

Permalink
Revert "Let the testscript shut down the server."
Browse files Browse the repository at this point in the history
Pterodactyl detects engine.CloseServer as a crash :<
  • Loading branch information
RaphaelIT7 committed May 14, 2024
1 parent a03163c commit e461729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions _testing/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ local function Sleep(time)
while time > os.time() do end
end

Sleep(10)
Sleep(20)

--[[HTTP({
HTTP({
method = "POST",
url = "https://" .. url .. "/api/client/servers/" .. id .. "/command",
headers = header,
Expand All @@ -178,7 +178,7 @@ Sleep(10)
body = json.encode({
command = "quit"
})
})]]
})

print("Waiting for Server to stop")

Expand Down
4 changes: 0 additions & 4 deletions _testing/gmod_testing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ local ret, err = pcall(function()
iFace:RunFile("includes/init.lua")
iFace:RunString(code)
iFace:RunHook("ExampleHook", "ExampleArg", 1234, true, Vector(1, 2, 3), Angle(4, 5, 6))

timer.Simple(5, function()
engine.CloseServer()
end)
end)

if err then
Expand Down

0 comments on commit e461729

Please sign in to comment.