Skip to content

[botframework-streaming] Some named pipe tests are not passing after fixing their inconclusiveness #4462

Open
@compulim

Description

@compulim

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Versions

What package version of the SDK are you using.
main

What nodejs version are you using
18

What browser version are you using
Unrelated

What os are you using
Windows

Describe the bug

Some tests are not conclusive because some of their expectations are not running. After fixing them, some issues are discovered with the library. Tests that are failing and some investigations:

  • Streaming Extensions NamedPipe Library Tests > NamedPipe Transport Tests > throws when reading from a dead socket
    • This is an issue on production code.
    • Reading from a dead socket will never resolve/reject.
    • The only way to reject reading is: read from a live socket, close/error out the socket
  • Streaming Extensions NamedPipe Library Tests > NamedPipe Client Tests > sends without throwing
    • This is an issue on test code.
    • Without connecting the named pipe, the send() call will never resolve
    • The test code should connect to the server and respond, then the send() call will resolve and completing the scenario
  • Streaming Extensions NamedPipe Library Tests > NamedPipe Server Tests > sends without throwing
    • This is an issue on test code.
    • Without connecting the named pipe, the send() call will never resolve
    • The test code should connect to the client and respond, then the send() call will resolve and completing the scenario

To Reproduce

Currently, those offending tests are disabled by it.skip().

Steps to reproduce the behavior:

  1. Modify offending tests by changing it from it.skip() to it()
  2. Run npm test under /libraries/botframework-streaming

Expected behavior

All tests should pass.

Screenshots

image

image

image

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions