summaryrefslogtreecommitdiffstats
path: root/gateway/samechannel
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-25 20:20:55 +0200
committerWim <wim@42.be>2017-07-25 20:20:55 +0200
commit5b191f78a0c3d1733d9c425ff4351e1e28e401aa (patch)
tree72ff472d845ce4d22474280b06eab3496712762f /gateway/samechannel
parent83ef61287e34aaf35e52eb5e18b87364294144da (diff)
downloadmatterbridge-msglm-5b191f78a0c3d1733d9c425ff4351e1e28e401aa.tar.gz
matterbridge-msglm-5b191f78a0c3d1733d9c425ff4351e1e28e401aa.tar.bz2
matterbridge-msglm-5b191f78a0c3d1733d9c425ff4351e1e28e401aa.zip
Update tests with gofmt
Diffstat (limited to 'gateway/samechannel')
-rw-r--r--gateway/samechannel/samechannel_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/samechannel/samechannel_test.go b/gateway/samechannel/samechannel_test.go
index 77487491..7e48ebc4 100644
--- a/gateway/samechannel/samechannel_test.go
+++ b/gateway/samechannel/samechannel_test.go
@@ -27,5 +27,5 @@ func TestGetConfig(t *testing.T) {
}
sgw := New(cfg)
configs := sgw.GetConfig()
- assert.Equal(t, []config.Gateway{config.Gateway{Name: "blah", Enable: true, In: []config.Bridge(nil), Out: []config.Bridge(nil), InOut: []config.Bridge{config.Bridge{Account: "mattermost.test", Channel: "testing", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, config.Bridge{Account: "mattermost.test", Channel: "testing2", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, config.Bridge{Account: "mattermost.test", Channel: "testing10", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, config.Bridge{Account: "slack.test", Channel: "testing", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, config.Bridge{Account: "slack.test", Channel: "testing2", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, config.Bridge{Account: "slack.test", Channel: "testing10", Options: config.ChannelOptions{Key: ""}, SameChannel: true}}}}, configs)
+ assert.Equal(t, []config.Gateway{{Name: "blah", Enable: true, In: []config.Bridge(nil), Out: []config.Bridge(nil), InOut: []config.Bridge{{Account: "mattermost.test", Channel: "testing", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, {Account: "mattermost.test", Channel: "testing2", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, {Account: "mattermost.test", Channel: "testing10", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, {Account: "slack.test", Channel: "testing", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, {Account: "slack.test", Channel: "testing2", Options: config.ChannelOptions{Key: ""}, SameChannel: true}, {Account: "slack.test", Channel: "testing10", Options: config.ChannelOptions{Key: ""}, SameChannel: true}}}}, configs)
}