aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-10-04 17:08:00 +0100
committerGitHub <noreply@github.com>2019-10-04 17:08:00 +0100
commit9a56cf8439304540d0cdae18b30df82962c065cb (patch)
tree5cce513d4f97a8da5dfe0934c09b304967545f58
parent7d77538ca4dad73594bc20d11b7f85dc0693d7a5 (diff)
Add AppService to test config and bind addrs (#800)
Because our unit tests are often forgotten about :/
-rw-r--r--common/test/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/test/config.go b/common/test/config.go
index 668e9a26..69355561 100644
--- a/common/test/config.go
+++ b/common/test/config.go
@@ -91,6 +91,7 @@ func MakeConfig(configDir, kafkaURI, database, host string, startPort int) (*con
// the table names are globally unique. But we might not want to
// rely on that in the future.
cfg.Database.Account = config.DataSource(database)
+ cfg.Database.AppService = config.DataSource(database)
cfg.Database.Device = config.DataSource(database)
cfg.Database.MediaAPI = config.DataSource(database)
cfg.Database.RoomServer = config.DataSource(database)
@@ -99,6 +100,7 @@ func MakeConfig(configDir, kafkaURI, database, host string, startPort int) (*con
cfg.Database.PublicRoomsAPI = config.DataSource(database)
cfg.Listen.ClientAPI = assignAddress()
+ cfg.Listen.AppServiceAPI = assignAddress()
cfg.Listen.FederationAPI = assignAddress()
cfg.Listen.MediaAPI = assignAddress()
cfg.Listen.RoomServer = assignAddress()