summaryrefslogtreecommitdiffstats
path: root/gateway/gateway_test.go
diff options
context:
space:
mode:
authorPatrick Connolly <patrick.c.connolly@gmail.com>2018-12-01 06:53:00 +0800
committerWim <wim@42.be>2018-11-30 23:53:00 +0100
commitf2088a687edd53e9e797f3b8941210ca3650cc45 (patch)
tree7a2adb7522e9696873fd734e4abb255759ba3b5e /gateway/gateway_test.go
parentfaeeee29482ffd23d26398bcaddea8dc885bc468 (diff)
downloadmatterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.gz
matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.bz2
matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.zip
Extract bridgeMap into own package to improve testability (#601)
Diffstat (limited to 'gateway/gateway_test.go')
-rw-r--r--gateway/gateway_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gateway/gateway_test.go b/gateway/gateway_test.go
index e7b77bf4..798b30c8 100644
--- a/gateway/gateway_test.go
+++ b/gateway/gateway_test.go
@@ -5,6 +5,7 @@ import (
"strconv"
"github.com/42wim/matterbridge/bridge/config"
+ "github.com/42wim/matterbridge/gateway/bridgemap"
"github.com/stretchr/testify/assert"
"testing"
@@ -160,7 +161,7 @@ const (
func maketestRouter(input []byte) *Router {
cfg := config.NewConfigFromString(input)
- r, err := NewRouter(cfg)
+ r, err := NewRouter(cfg, bridgemap.FullMap)
if err != nil {
fmt.Println(err)
}