From 9a56cf8439304540d0cdae18b30df82962c065cb Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Fri, 4 Oct 2019 17:08:00 +0100 Subject: [PATCH] Add AppService to test config and bind addrs (#800) Because our unit tests are often forgotten about :/ --- common/test/config.go | 2 ++ 1 file changed, 2 insertions(+) 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()