Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests: create mock KQ cab #18

Open
4 tasks done
KevinSnyderCodes opened this issue May 29, 2018 · 1 comment
Open
4 tasks done

Unit tests: create mock KQ cab #18

KevinSnyderCodes opened this issue May 29, 2018 · 1 comment
Assignees

Comments

@KevinSnyderCodes
Copy link
Collaborator

KevinSnyderCodes commented May 29, 2018

(Local branch: feature-kqcab)

Create KQCab class that mocks a real Killer Queen cabinet:

  • Stores connections to the cab
  • Sends an appropriate alive message every 5 seconds
  • Closes a connection if a response was not received within X amount of time from alive message
  • #send(message: string): sends raw message to all connections

Bonus points for verifying the validity of the mock class:

  • Does a Killer Queen cabinet accept multiple connections at once?
  • What kind of response does a Killer Queen cabinet need to receive after the alive message to keep a connection open?
@KevinSnyderCodes KevinSnyderCodes self-assigned this May 29, 2018
@KevinSnyderCodes
Copy link
Collaborator Author

Implementation complete! Writing unit tests, then I'll make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant