Skip to content

Commit ce96d8e

Browse files
committed
增强测试
1 parent 6deb85c commit ce96d8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xcoin-blockchain/src/test/scala/xcoin/blockchain/internal/tron/TNCAccountSupportTest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.springframework.boot.test.mock.mockito.MockBean
1212
import org.tron.trident.api.GrpcAPI.AccountAddressMessage
1313
import org.tron.trident.api.ReactorWalletGrpc.ReactorWalletStub
1414
import org.tron.trident.proto.Chain.Transaction.Contract.ContractType
15+
import org.tron.trident.proto.Common.AccountType
1516
import org.tron.trident.proto.Response
1617
import reactor.core.publisher.Mono
1718
import reactor.test.StepVerifier
@@ -43,6 +44,7 @@ class TNCAccountSupportTest {
4344

4445
val account = tronNodeClient.accountGet("TSKnicj3bfk7M7KTjtecHXLz2jvdveFtqq").block()
4546
Assertions.assertTrue(account.activePermission.length > 0)
47+
Assertions.assertEquals(AccountType.Normal,account.`type`)
4648

4749
StepVerifier
4850
.create(account.canDelegateBandwidth())

0 commit comments

Comments
 (0)