From 9a91bf999d811f730498bc834242fd808384663a Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 22 Jul 2023 14:45:18 +0200 Subject: [PATCH] Minor test file fixes --- tests/fs/files.luau | 1 - tests/net/socket/wss_rw.luau | 4 ++-- tests/roblox/reflection/class.luau | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/fs/files.luau b/tests/fs/files.luau index 7278b50..a49412e 100644 --- a/tests/fs/files.luau +++ b/tests/fs/files.luau @@ -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 diff --git a/tests/net/socket/wss_rw.luau b/tests/net/socket/wss_rw.luau index 5aca618..8ae6066 100644 --- a/tests/net/socket/wss_rw.luau +++ b/tests/net/socket/wss_rw.luau @@ -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) diff --git a/tests/roblox/reflection/class.luau b/tests/roblox/reflection/class.luau index fa20bd3..2e7ccbf 100644 --- a/tests/roblox/reflection/class.luau +++ b/tests/roblox/reflection/class.luau @@ -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