mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-12 09:22:27 +08:00
ping rpc
This commit is contained in:
18
ping_test.go
18
ping_test.go
@@ -2,13 +2,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/eiblog/eiblog/setting"
|
||||
)
|
||||
|
||||
func TestPing(t *testing.T) {
|
||||
sf := Superfeedr{URL: fmt.Sprintf("https://%s.superfeedr.com", setting.Conf.Superfeedr)}
|
||||
func TestSuperFeedr(t *testing.T) {
|
||||
sf := superfeedr{}
|
||||
sf.PingFunc("https://deepzz.com/rss.html")
|
||||
}
|
||||
|
||||
func TestPingRPC(t *testing.T) {
|
||||
pr := pingRPC{
|
||||
MethodName: "weblogUpdates.extendedPing",
|
||||
}
|
||||
pr.Params.Param = [4]rpcValue{
|
||||
rpcValue{Value: Ei.BTitle},
|
||||
rpcValue{Value: "https://" + setting.Conf.Mode.Domain},
|
||||
rpcValue{Value: "https://deepzz.com/post/gdb-debug.html"},
|
||||
rpcValue{Value: "https://deepzz.com/rss.html"},
|
||||
}
|
||||
pr.PingFunc("https://deepzz.com/post/gdb-debug.html")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user