This commit is contained in:
deepzz0
2016-11-15 01:51:23 +08:00
parent d84abc2719
commit a6d2f7796e
10 changed files with 128 additions and 43 deletions

View File

@@ -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")
}