From 4257951f930feb6a743dc679255cacd325a85af0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 5 Mar 2019 20:25:33 -0800 Subject: [PATCH] test: better idb migration test (#1080) --- tests/unit/test-database.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test-database.js b/tests/unit/test-database.js index c985206c..0569ac7e 100644 --- a/tests/unit/test-database.js +++ b/tests/unit/test-database.js @@ -162,7 +162,7 @@ describe('test-database.js', function () { let allStatuses = times(40, createStatus) await dbApi.insertTimelineItems(INSTANCE_NAME, 'local', allStatuses) - let statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 40) + let statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 1000) let expected = allStatuses.slice().reverse() assert.deepStrictEqual(statuses.map(stripDBFields), expected) @@ -174,7 +174,7 @@ describe('test-database.js', function () { await getDatabase(INSTANCE_NAME) // check that the old statuses are correct - statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 40) + statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 1000) expected = allStatuses.slice().reverse() assert.deepStrictEqual(statuses.map(stripDBFields), expected) @@ -183,7 +183,7 @@ describe('test-database.js', function () { await dbApi.insertTimelineItems(INSTANCE_NAME, 'local', moreStatuses) - statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 60) + statuses = await dbApi.getTimeline(INSTANCE_NAME, 'local', null, 1000) expected = moreStatuses.slice().reverse().concat(allStatuses.reverse()) assert.deepStrictEqual(statuses.map(stripDBFields), expected)