mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-30 18:29:16 +02:00
Tests, client tests WIP
This commit is contained in:
parent
68d881291c
commit
6a7e9071b6
7 changed files with 104 additions and 30 deletions
server
|
@ -7,6 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func TestConfig_New(t *testing.T) {
|
||||
c := server.NewConfig(":1234")
|
||||
assert.Equal(t, ":1234", c.ListenHTTP)
|
||||
c := server.NewConfig()
|
||||
assert.Equal(t, ":80", c.ListenHTTP)
|
||||
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue