Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional Get account is failing randomly #3239

Closed
shuse2 opened this issue Apr 1, 2019 · 0 comments

Comments

Projects
2 participants
@shuse2
Copy link
Contributor

commented Apr 1, 2019

Expected behavior

functional test GET /accounts is failing randomly

Actual behavior

[2019-04-01T14:59:13.467Z]   1) GET /accounts

[2019-04-01T14:59:13.467Z]        ?

[2019-04-01T14:59:13.467Z]          sort

[2019-04-01T14:59:13.467Z]            using sort = balance:desc should return accounts in descending order by balance:

[2019-04-01T14:59:13.467Z] 

[2019-04-01T14:59:13.467Z]       AssertionError: expected [ Array(10) ] to deeply equal [ Array(10) ]

[2019-04-01T14:59:13.467Z]       + expected - actual

[2019-04-01T14:59:13.467Z] 

[2019-04-01T14:59:13.467Z]            "secondPublicKey": ""

[2019-04-01T14:59:13.467Z]            "unconfirmedBalance": "7990000000"

[2019-04-01T14:59:13.467Z]          }

[2019-04-01T14:59:13.467Z]          {

[2019-04-01T14:59:13.467Z]       -    "address": "13397677894327980967L"

[2019-04-01T14:59:13.467Z]       -    "balance": "600000000"

[2019-04-01T14:59:13.467Z]       -    "delegate": {

[2019-04-01T14:59:13.467Z]       -      "approval": 0

[2019-04-01T14:59:13.467Z]       -      "missedBlocks": 0

[2019-04-01T14:59:13.467Z]       -      "producedBlocks": 0

[2019-04-01T14:59:13.467Z]       -      "productivity": 0

[2019-04-01T14:59:13.467Z]       -      "rank": [null]

[2019-04-01T14:59:13.467Z]       -      "rewards": "0"

[2019-04-01T14:59:13.467Z]       -      "username": "udgopklplc"

[2019-04-01T14:59:13.467Z]       -      "vote": "0"

[2019-04-01T14:59:13.467Z]       -    }

[2019-04-01T14:59:13.467Z]       -    "publicKey": "84fa44aa3b3e1d3fcf57158795cc69401847e6418010e18b36e5a2861ec17acf"

[2019-04-01T14:59:13.467Z]       -    "secondPublicKey": ""

[2019-04-01T14:59:13.467Z]       -    "unconfirmedBalance": "600000000"

[2019-04-01T14:59:13.467Z]       -  }

[2019-04-01T14:59:13.467Z]       -  {

[2019-04-01T14:59:13.467Z]            "address": "17971698090269522089L"

[2019-04-01T14:59:13.467Z]            "balance": "3900000000"

[2019-04-01T14:59:13.467Z]            "publicKey": "58509825a745f125c7c39fb5edc69eff2b01be85bf1f707196eb98562126b943"

[2019-04-01T14:59:13.467Z]            "secondPublicKey": ""

[2019-04-01T14:59:13.467Z] --

[2019-04-01T14:59:13.467Z]            "publicKey": ""

[2019-04-01T14:59:13.467Z]            "secondPublicKey": ""

[2019-04-01T14:59:13.467Z]            "unconfirmedBalance": "1500000000"

[2019-04-01T14:59:13.467Z]          }

[2019-04-01T14:59:13.467Z]       +  {

[2019-04-01T14:59:13.467Z]       +    "address": "13397677894327980967L"

[2019-04-01T14:59:13.467Z]       +    "balance": "600000000"

[2019-04-01T14:59:13.467Z]       +    "delegate": {

[2019-04-01T14:59:13.467Z]       +      "approval": 0

[2019-04-01T14:59:13.467Z]       +      "missedBlocks": 0

[2019-04-01T14:59:13.467Z]       +      "producedBlocks": 0

[2019-04-01T14:59:13.467Z]       +      "productivity": 0

[2019-04-01T14:59:13.467Z]       +      "rank": [null]

[2019-04-01T14:59:13.467Z]       +      "rewards": "0"

[2019-04-01T14:59:13.467Z]       +      "username": "udgopklplc"

[2019-04-01T14:59:13.467Z]       +      "vote": "0"

[2019-04-01T14:59:13.467Z]       +    }

[2019-04-01T14:59:13.467Z]       +    "publicKey": "84fa44aa3b3e1d3fcf57158795cc69401847e6418010e18b36e5a2861ec17acf"

[2019-04-01T14:59:13.467Z]       +    "secondPublicKey": ""

[2019-04-01T14:59:13.467Z]       +    "unconfirmedBalance": "600000000"

[2019-04-01T14:59:13.467Z]       +  }

[2019-04-01T14:59:13.467Z]        ]

[2019-04-01T14:59:13.467Z]       

[2019-04-01T14:59:13.467Z]       at accountsEndpoint.makeRequest.then.res (framework/test/mocha/functional/http/get/accounts/accounts.js:330:15)

[2019-04-01T14:59:13.467Z]       at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)

[2019-04-01T14:59:13.467Z]       at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:512:31)

[2019-04-01T14:59:13.467Z]       at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:569:18)

[2019-04-01T14:59:13.467Z]       at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10)

[2019-04-01T14:59:13.467Z]       at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:694:18)

[2019-04-01T14:59:13.467Z]       at _drainQueueStep (node_modules/bluebird/js/release/async.js:138:12)

[2019-04-01T14:59:13.467Z]       at _drainQueue (node_modules/bluebird/js/release/async.js:131:9)

[2019-04-01T14:59:13.467Z]       at Async._drainQueues (node_modules/bluebird/js/release/async.js:147:5)

[2019-04-01T14:59:13.467Z]       at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:17:14)

Which version(s) does this affect? (Environment, OS, etc...)

1.6.0-alpha.4

@shuse2 shuse2 added the bug label Apr 1, 2019

@shuse2 shuse2 added this to To do in Version 1.6.0 via automation Apr 1, 2019

@shuse2 shuse2 closed this in #3241 Apr 2, 2019

Version 1.6.0 automation moved this from To do to Done Apr 2, 2019

shuse2 added a commit that referenced this issue Apr 2, 2019

Merge pull request #3241 from LiskHQ/3239-fix_func_test_accounts
Fix failing func test for /account API - Closes #3239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.