mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
feat: add serverchan notify client
This commit is contained in:
15
pkg/notifier/clients_test.go
Normal file
15
pkg/notifier/clients_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package notifier
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestServerChan(t *testing.T) {
|
||||
s, err := NewServerChanClient(``)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
err = s.SendMsg("test")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user