Skip to content

Commit

Permalink
Fixed intermittent test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
harryz2000 authored Oct 14, 2024
1 parent 4f66003 commit 78ae6c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ tap.test("Server", async function (suite)

//Wait 1 seconds
await sleep(1000);

test.end();
});

await suite.test("invalidurl", async function (test)
Expand All @@ -136,6 +138,8 @@ tap.test("Server", async function (suite)
//Connect
let errorCode = connection.connect("invalid.url", 1937, "test");
test.equal(errorCode, RTMPServer.NetConnectionErrorCode.FailedToResolveURL);

test.end();
});

await suite.test("peerclosed", async function (test)
Expand Down

0 comments on commit 78ae6c3

Please sign in to comment.