Skip to content

Commit

Permalink
Use b4a
Browse files Browse the repository at this point in the history
  • Loading branch information
freeall committed Apr 9, 2024
1 parent a877eec commit 0280316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/fixtures/server-through-relay.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main () {
socket.setKeepAlive(socketKeepAlive)
socket
.on('data', data => {
console.log(`socket_ondata ${data.toString()}`)
console.log(`socket_ondata ${b4a.toString(data)}`)
socket.write('world')
})
.on('open', () => console.log(`socket_onopen ${socket.rawStream.remoteHost}:${socket.rawStream.remotePort}`))
Expand Down
2 changes: 1 addition & 1 deletion test/integration/keep-alive-with-relay.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ test('When Server is killed, Client should detect this - through relay', async t
client.write('hello')
})
.on('data', data => {
data = data.toString()
data = b4a.toString(data)

if (data === 'world') {
clientTest.pass('Received "world" from server')
Expand Down

0 comments on commit 0280316

Please sign in to comment.