1 Star 0 Fork 75

懵懂的鸟 / yomo

forked from YoMo / yomo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sfn_test.go 353 Bytes
一键复制 编辑 原始数据 按行查看 历史
package yomo
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSfnConnectToServer(t *testing.T) {
sfn := NewStreamFunction(
"test-sfn",
WithZipperAddr("localhost:9000"),
WithObserveDataTags(0x33),
)
defer sfn.Close()
// set handler
sfn.SetHandler(nil)
// connect to server
err := sfn.Connect()
assert.Nil(t, err)
}
Go
1
https://gitee.com/mengdongdeniao/yomo.git
git@gitee.com:mengdongdeniao/yomo.git
mengdongdeniao
yomo
yomo
master

搜索帮助