dtm/dtm_test.go
2021-05-17 15:09:05 +08:00

24 lines
404 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package main
import (
"testing"
"github.com/go-playground/assert/v2"
"github.com/spf13/viper"
"github.com/yedf/dtm/dtmsvr"
)
func init() {
dtmsvr.LoadConfig()
}
func TestViper(t *testing.T) {
assert.Equal(t, "test_val", viper.GetString("test"))
}
func TTestDtmSvr(t *testing.T) {
// 发送Prepare请求后验证数据库
// ConsumeHalfMsg 验证数据库
// ConsumeMsg 验证数据库
}