Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed May 27, 2024
1 parent 68d2e76 commit 5c68145
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ describe("Socket", function () {
});

socket.on("error", (err) => {
expect(err.message).to.eql("xhr poll error");
expect(err.message).to.eql(
useFetch ? "fetch read error" : "xhr poll error"
);
done();
});
});
Expand Down

0 comments on commit 5c68145

Please sign in to comment.