mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
fix lint
This commit is contained in:
@@ -5,6 +5,11 @@ const { UP, PENDING } = require("../../../src/util");
|
||||
const net = require("net");
|
||||
|
||||
describe("TCP Monitor", () => {
|
||||
/**
|
||||
* Creates a TCP server on a specified port
|
||||
* @param {number} port - The port number to listen on
|
||||
* @returns {Promise<net.Server>} A promise that resolves with the created server
|
||||
*/
|
||||
async function createTCPServer(port) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const server = net.createServer();
|
||||
|
||||
Reference in New Issue
Block a user