Skip to content

Commit

Permalink
Add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erquirogasw committed Jun 16, 2023
1 parent 4e09988 commit 1e624bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/botframework-streaming/tests/NamedPipe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe.windowsOnly('Streaming Extensions NamedPipe Library Tests', function ()
const transport = new NamedPipeTransport(sock, 'fakeSocket5');
expect(transport).to.be.instanceOf(NamedPipeTransport);
expect(transport.isConnected).to.be.false;
expect(() => transport.receive(5)).to.throw();
expect(() => transport.receive(5)).to.throw('Cannot receive data over a dead/destroyed socket.');
expect(() => transport.close()).to.not.throw();
});

Expand All @@ -186,7 +186,7 @@ describe.windowsOnly('Streaming Extensions NamedPipe Library Tests', function ()
expect(() => transport.close()).to.not.throw();
expect(transport.isConnected).to.be.false;
expect(transport.socket).to.be.null;
expect(() => transport.receive(5)).to.throw();
expect(() => transport.receive(5)).to.throw('Cannot receive data over an unavailable/null socket.');
});

it('can read from the socket', function () {
Expand Down

0 comments on commit 1e624bf

Please sign in to comment.