Wrote forwarder.
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user