This commit is contained in:
@@ -116,7 +116,7 @@ func defaultConfig() *Config {
|
|||||||
IM: IMConfig{
|
IM: IMConfig{
|
||||||
BaseURL: "https://api.118im.com", HTTPAPIURL: "https://api.118im.com/v1/im",
|
BaseURL: "https://api.118im.com", HTTPAPIURL: "https://api.118im.com/v1/im",
|
||||||
WebSocketURL: "wss://api.118im.com/v0/channels", FileURL: "https://api.118im.com/v0/file",
|
WebSocketURL: "wss://api.118im.com/v0/channels", FileURL: "https://api.118im.com/v0/file",
|
||||||
TenantCode: "allrich", APIKey: "AQAAAAABAAChdu8_yk0OxZcId6FnwYNS",
|
TenantCode: "default", APIKey: "AQAAAAABAAChdu8_yk0OxZcId6FnwYNS",
|
||||||
InternalService: "olons-server", Timeout: 8 * time.Second,
|
InternalService: "olons-server", Timeout: 8 * time.Second,
|
||||||
},
|
},
|
||||||
ReadTimeout: 8 * time.Second,
|
ReadTimeout: 8 * time.Second,
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ func TestDefaultConfigUsesOlonsAdmin(t *testing.T) {
|
|||||||
if err := cfg.validate(); err != nil {
|
if err := cfg.validate(); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
if cfg.IM.TenantCode != "default" {
|
||||||
|
t.Fatalf("unexpected default IM tenant: %q", cfg.IM.TenantCode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConfigRejectsOtherDatabase(t *testing.T) {
|
func TestConfigRejectsOtherDatabase(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user