|
package server_test
|
|
|
|
import (
|
|
"git.zio.sh/astra/ntfy/v2/server"
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestConfig_New(t *testing.T) {
|
|
c := server.NewConfig()
|
|
assert.Equal(t, ":80", c.ListenHTTP)
|
|
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
|
|
}
|