mirror-chatterino2/tests
pajlada 416806bb0a
refactor: Twitch PubSub client (#5059)
* Remove unused `setAccountData` function

* Move PubSub out of TwitchIrcServer and into Application

* Add changelog entry

* fix: assert feedback

* Add PubSub::unlistenPrefix as per review suggestion

* Fix tests

* quit pubsub on exit

might conflict with exit removal, so can be reverted but this shows it's possible

* Don't manually call stop on clients, it's called when the connection is closed

* nit: rename `mainThread` to `thread`

* Join in a thread!!!!!!!!
2024-01-06 13:18:37 +01:00
..
resources Add support for opening links in incognito mode on Linux & BSD (#4745) 2023-08-06 15:57:01 +02:00
src refactor: Twitch PubSub client (#5059) 2024-01-06 13:18:37 +01:00
CMakeLists.txt Add some tests for NotebookTab (#5070) 2024-01-06 11:42:45 +01:00
README.md docs: cleanup/polish Markdown files (#5038) 2023-12-23 11:39:53 +01:00

To run all tests you will need to run the kennethreitz/httpbin and ghcr.io/chatterino/twitch-pubsub-server-test:latest docker images.

For example:

docker run --network=host --detach ghcr.io/chatterino/twitch-pubsub-server-test:latest
docker run -p 9051:80 --detach kennethreitz/httpbin

If you're unable to use docker, you can use httpbox (httpbox --port 9051) and Chatterino/twitch-pubsub-server-test manually.