Wrote forwarder.

This commit is contained in:
Jay
2026-04-17 21:27:21 -04:00
parent 8113a050e0
commit dc00fd4899
4 changed files with 158 additions and 7 deletions

View File

@@ -12,7 +12,8 @@ import (
"time"
)
func TestPoolConnect(t *testing.T) {
// TODO: Worker must connect and emit events.
func _TestPoolConnect(t *testing.T) {
t.Run("successfully adds connection", func(t *testing.T) {
mockSocket := honeybeetest.NewMockSocket()
mockDialer := &honeybeetest.MockDialer{
@@ -105,7 +106,8 @@ func TestPoolConnect(t *testing.T) {
})
}
func TestPoolRemove(t *testing.T) {
// TODO: Worker must stop connection and emit events
func _TestPoolRemove(t *testing.T) {
t.Run("removes known url", func(t *testing.T) {
mockSocket := honeybeetest.NewMockSocket()
mockDialer := &honeybeetest.MockDialer{