From cd411c6cba5f47a98da73082cc774272e4387f21 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Thu, 12 Aug 2021 18:20:54 +0800 Subject: [PATCH] barrier grpc used --- dtmgrpc/type_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dtmgrpc/type_test.go diff --git a/dtmgrpc/type_test.go b/dtmgrpc/type_test.go new file mode 100644 index 0000000..d6a80fc --- /dev/null +++ b/dtmgrpc/type_test.go @@ -0,0 +1,12 @@ +package dtmgrpc + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestType(t *testing.T) { + _, err := BarrierFromGrpc(&BusiRequest{Info: &BranchInfo{}}) + assert.Error(t, err) +}