meshplus/bitxhub

Register rule with unexisted appchain id should fail, but not.

treasersimplifies opened this issue · 0 comments

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

Register rule with unexisted appchain id

2. What did you expect to see?

The receipt of the tx should be Receipt_FAILED.

3. What did you see instead?

The receipt of the tx should is Receipt_SUCCESS.

=== RUN   TestTester/TestRegisterUnexistedAppchainShouldFail
    TestTester/TestRegisterUnexistedAppchainShouldFail: case008_rule_test.go:106: 
                Error Trace:    case008_rule_test.go:106
                Error:          Expected value not to be nil.
                Test:           TestTester/TestRegisterUnexistedAppchainShouldFail
    TestTester/TestRegisterUnexistedAppchainShouldFail: case008_rule_test.go:107: 
                Error Trace:    case008_rule_test.go:107
                Error:          Should be true
                Test:           TestTester/TestRegisterUnexistedAppchainShouldFail

4. What version of BitXHub are you using? (bitxhub version on BitXHub)

BitXHub version: 1.0.0-rc1-master-7a00eb3
App build date: 2020-07-27T14:05:37
System version: darwin/amd64
Golang version: go1.14.4