Skip to content

Commit 65f021a

Browse files
author
Simon Stone
committed
[FAB-16473] Test updates to reflect FAB-16303
FAB-16303 changed the historydb results to be newest to oldest. Currently the Node.js chaincode tests expect it to be oldest to newest, so this CR updates the tests. Signed-off-by: Simon Stone <sstone1@uk.ibm.com> Change-Id: If6334cc90b0dc9e35d637ee70f298812f463d0ec
1 parent e71eedd commit 65f021a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/fv/crud.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ describe('Chaincode CRUD', () => {
8282
await utils.invoke(suite, 'org.mynamespace.crud:putKey', ['key1', 'value1']);
8383

8484
let payload = await utils.query(suite, 'org.mynamespace.crud:getHistoryForKey', ['key1']);
85-
expect(JSON.parse(payload)).to.deep.equal(['value1', 'newValue1', 'newValue2', 'newValue3', 'value1']);
85+
expect(JSON.parse(payload)).to.deep.equal(['value1', 'newValue3', 'newValue2', 'newValue1', 'value1']);
8686

8787
payload = await utils.query(suite, 'org.mynamespace.crud:getHistoryForKeyUsingAsyncIterator', ['key1']);
88-
expect(JSON.parse(payload)).to.deep.equal(['value1', 'newValue1', 'newValue2', 'newValue3', 'value1']);
88+
expect(JSON.parse(payload)).to.deep.equal(['value1', 'newValue3', 'newValue2', 'newValue1', 'value1']);
8989

9090
});
9191

0 commit comments

Comments
 (0)