Skip to content

Commit

Permalink
[unity]ut用例用个更不容易冲突的端口
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Oct 30, 2024
1 parent e28a32e commit 8ff50c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unity/test/Src/Cases/WebsocketTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class WebsocketTest
[Test]
public async Task SmokeTest()
{
WebSocketServer wss = new WebSocketServer("http://localhost:5000/");
WebSocketServer wss = new WebSocketServer("http://localhost:5123/");
#if PUERTS_GENERAL
var jsEnv = new JsEnv(new TxtLoader());
#else
Expand All @@ -96,7 +96,7 @@ public async Task SmokeTest()

jsEnv.Eval(@"
(function() {
let con = new WebSocket('ws://localhost:5000');
let con = new WebSocket('ws://localhost:5123');
con.addEventListener('open', (ev) => {
console.log(`on open`);
con.send('puerts websocket');
Expand Down

0 comments on commit 8ff50c8

Please sign in to comment.