Browse Source

tcc nested test back

pull/25/head
yedf2 5 years ago
parent
commit
b5d09c4d1d
  1. 3
      dtmgrpc/type_test.go
  2. 6
      test/grpc_tcc_test.go

3
dtmgrpc/type_test.go

@ -9,4 +9,7 @@ import (
func TestType(t *testing.T) { func TestType(t *testing.T) {
_, err := BarrierFromGrpc(&BusiRequest{Info: &BranchInfo{}}) _, err := BarrierFromGrpc(&BusiRequest{Info: &BranchInfo{}})
assert.Error(t, err) assert.Error(t, err)
_, err = TccFromRequest(&BusiRequest{Info: &BranchInfo{}})
assert.Error(t, err)
} }

6
test/grpc_tcc_test.go

@ -11,9 +11,9 @@ import (
) )
func TestGrpcTcc(t *testing.T) { func TestGrpcTcc(t *testing.T) {
// tccGrpcType(t) tccGrpcType(t)
// tccGrpcNormal(t) tccGrpcNormal(t)
// tccGrpcNested(t) tccGrpcNested(t)
tccGrpcRollback(t) tccGrpcRollback(t)
} }

Loading…
Cancel
Save