ntfy/server/config_test.go

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

14 lines
279 B
Go
Raw Normal View History

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