diff --git a/dtmgrpc/type_test.go b/dtmgrpc/type_test.go index d6a80fc..0c3fb98 100644 --- a/dtmgrpc/type_test.go +++ b/dtmgrpc/type_test.go @@ -9,4 +9,7 @@ import ( func TestType(t *testing.T) { _, err := BarrierFromGrpc(&BusiRequest{Info: &BranchInfo{}}) assert.Error(t, err) + + _, err = TccFromRequest(&BusiRequest{Info: &BranchInfo{}}) + assert.Error(t, err) } diff --git a/test/grpc_tcc_test.go b/test/grpc_tcc_test.go index 41f6545..5162d0a 100644 --- a/test/grpc_tcc_test.go +++ b/test/grpc_tcc_test.go @@ -11,9 +11,9 @@ import ( ) func TestGrpcTcc(t *testing.T) { - // tccGrpcType(t) - // tccGrpcNormal(t) - // tccGrpcNested(t) + tccGrpcType(t) + tccGrpcNormal(t) + tccGrpcNested(t) tccGrpcRollback(t) }