2021-12-19 04:02:36 +01:00
|
|
|
package server_test
|
2021-12-07 18:23:42 +01:00
|
|
|
|
|
|
|
import (
|
2023-11-12 18:35:19 +01:00
|
|
|
"git.zio.sh/astra/ntfy/v2/server"
|
2021-12-07 18:23:42 +01:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestConfig_New(t *testing.T) {
|
2021-12-22 14:17:50 +01:00
|
|
|
c := server.NewConfig()
|
|
|
|
assert.Equal(t, ":80", c.ListenHTTP)
|
|
|
|
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
|
2021-12-07 18:23:42 +01:00
|
|
|
}
|