mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-09 12:19:09 +00:00
Minor test file fixes
This commit is contained in:
parent
57f730e788
commit
9a91bf999d
3 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,6 @@ local TEMP_DIR_PATH = "bin/"
|
||||||
local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_files_test"
|
local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_files_test"
|
||||||
|
|
||||||
local fs = require("@lune/fs")
|
local fs = require("@lune/fs")
|
||||||
local net = require("@lune/net")
|
|
||||||
local utils = require("./utils")
|
local utils = require("./utils")
|
||||||
|
|
||||||
-- Make sure our bin dir exists
|
-- Make sure our bin dir exists
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
local net = require("@lune/net")
|
local net = require("@lune/net")
|
||||||
local process = require("@lune/process")
|
local process = require("@lune/process")
|
||||||
|
local stdio = require("@lune/stdio")
|
||||||
local task = require("@lune/task")
|
local task = require("@lune/task")
|
||||||
|
|
||||||
-- We're going to use Discord's WebSocket gateway server
|
-- We're going to use Discord's WebSocket gateway server
|
||||||
|
@ -15,8 +16,7 @@ end)
|
||||||
|
|
||||||
local delayedThread = task.delay(5, function()
|
local delayedThread = task.delay(5, function()
|
||||||
task.defer(process.exit, 1)
|
task.defer(process.exit, 1)
|
||||||
error("`socket.send` halted, failed to write to socket")
|
stdio.ewrite("`socket.send` halted, failed to write to socket")
|
||||||
|
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ for _, className in db:GetClassNames() do
|
||||||
assert(class ~= nil)
|
assert(class ~= nil)
|
||||||
for name, value in class.DefaultProperties do
|
for name, value in class.DefaultProperties do
|
||||||
local found = false
|
local found = false
|
||||||
local current = class
|
local current: roblox.DatabaseClass? = class
|
||||||
while current ~= nil do
|
while current ~= nil do
|
||||||
if current.Properties[name] ~= nil then
|
if current.Properties[name] ~= nil then
|
||||||
found = true
|
found = true
|
||||||
|
|
Loading…
Reference in a new issue