示例#1
0
func TestRun_メッセージ受信開始に成功(t *testing.T) {
	eventLoopFunc = testEventLoop
	config.Servant = config.DefaultServantConfig()
	config.Servant.Sys.BindPort = 65531
	r, err := Run()
	if err != nil {
		t.Error("エラーが発生した - %v", err)
	}
	if r != 0 {
		t.Errorf("不正な戻り値 : %v", r)
	}
}
示例#2
0
func readTestConfig() *config.ServantConfig {
	config.Servant = config.DefaultServantConfig()
	return config.Servant
}