mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Adjust configuration settings
This commit is contained in:
parent
c6a3cb5c9c
commit
f32fcdaf1a
@ -18,3 +18,10 @@ func TestLoadMinioConfig(t *testing.T) {
|
|||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
assert.Equal(t, "openim", storageConfig.Bucket)
|
assert.Equal(t, "openim", storageConfig.Bucket)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestLoadWebhooksConfig(t *testing.T) {
|
||||||
|
var webhooks Webhooks
|
||||||
|
err := LoadConfig("../../../config/webhooks.yml", "OPENIM_WEBHOOKS", &webhooks)
|
||||||
|
assert.Nil(t, err)
|
||||||
|
assert.Equal(t, 5, webhooks.AddBlackBefore.Timeout)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user