ntfy/server/config_test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
282 B
Go
Raw Permalink Normal View History

2021-12-19 16:02:36 +13:00
package server_test
2021-12-08 06:23:42 +13:00
import (
"github.com/stretchr/testify/assert"
2023-11-17 14:54:58 +13:00
"heckel.io/ntfy/v2/server"
2021-12-08 06:23:42 +13:00
"testing"
)
func TestConfig_New(t *testing.T) {
2021-12-23 02:17:50 +13:00
c := server.NewConfig()
assert.Equal(t, ":80", c.ListenHTTP)
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
2021-12-08 06:23:42 +13:00
}