Skip to content

Commit 5575ede

Browse files
committed
Improving the visualization of server creation in test.lua
1 parent d1493e2 commit 5575ede

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

PS/mysandbox/test.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ log.live()
1616
if not PS then log("not find PudimServer") end
1717

1818

19-
local serverTest = PS:create({})
19+
local serverTest = PS:Create{
20+
Port = 8080,
21+
Address = "localhost",
22+
ServiceName = "PudimServerTest",
23+
wrapClientFunc = nil
24+
}
2025

2126
serverTest:Routes("/",
2227
function (req, res)
@@ -55,6 +60,6 @@ serverTest:Routes("/otherPage",
5560
)
5661

5762

58-
serverTest:run()
63+
serverTest:Run()
5964

6065
log.save("./PS/mysandbox/", "log.txt")

0 commit comments

Comments
 (0)