Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Functional Get account is failing randomly #3239

Closed
shuse2 opened this issue Apr 1, 2019 · 0 comments · Fixed by #3241
Closed

Functional Get account is failing randomly #3239

shuse2 opened this issue Apr 1, 2019 · 0 comments · Fixed by #3241
Assignees

Comments

@shuse2
Copy link
Collaborator

shuse2 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants