Minor test file fixes

This commit is contained in:
Filip Tibell 2023-07-22 14:45:18 +02:00
parent 57f730e788
commit 9a91bf999d
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View file

@ -2,7 +2,6 @@ local TEMP_DIR_PATH = "bin/"
local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_files_test"
local fs = require("@lune/fs")
local net = require("@lune/net")
local utils = require("./utils")
-- Make sure our bin dir exists

View file

@ -1,5 +1,6 @@
local net = require("@lune/net")
local process = require("@lune/process")
local stdio = require("@lune/stdio")
local task = require("@lune/task")
-- We're going to use Discord's WebSocket gateway server
@ -15,8 +16,7 @@ end)
local delayedThread = task.delay(5, function()
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)
end)

View file

@ -25,7 +25,7 @@ for _, className in db:GetClassNames() do
assert(class ~= nil)
for name, value in class.DefaultProperties do
local found = false
local current = class
local current: roblox.DatabaseClass? = class
while current ~= nil do
if current.Properties[name] ~= nil then
found = true