From ef9b116856f52967f2cd820a8761339f3ec6164a Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Fri, 10 Aug 2018 12:33:53 +0200 Subject: [PATCH] Fixed random test failure in /core/test/integration/data/importer/importers/data_spec.js no issue - added order option when fetching tags --- .../test/integration/data/importer/importers/data_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/test/integration/data/importer/importers/data_spec.js b/core/test/integration/data/importer/importers/data_spec.js index baa1ddd5cb..337d527419 100644 --- a/core/test/integration/data/importer/importers/data_spec.js +++ b/core/test/integration/data/importer/importers/data_spec.js @@ -584,7 +584,7 @@ describe('Integration: Importer', function () { .then(function () { return Promise.all([ models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)), - models.Tag.findPage(testUtils.context.internal) + models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)), ]); }).then(function (result) { const posts = result[0].posts, @@ -682,7 +682,7 @@ describe('Integration: Importer', function () { .then(function () { return Promise.all([ models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)), - models.Tag.findPage(testUtils.context.internal), + models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)), models.User.findPage(Object.assign({withRelated: ['roles']}, testUtils.context.internal)) ]); }).then(function (result) { @@ -824,7 +824,7 @@ describe('Integration: Importer', function () { imported.problems.length.should.eql(0); return Promise.all([ - models.Tag.findPage(testUtils.context.internal), + models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)), models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)) ]); }).then(function (result) { @@ -1122,7 +1122,7 @@ describe('Integration: Importer', function () { .then(function () { return Promise.all([ models.Post.findPage(Object.assign({withRelated: ['tags']}, testUtils.context.internal)), - models.Tag.findPage(testUtils.context.internal), + models.Tag.findPage(Object.assign({order: 'slug ASC'}, testUtils.context.internal)), models.User.findPage(Object.assign({withRelated: ['roles']}, testUtils.context.internal)), models.Client.findAll(testUtils.context.internal), models.ClientTrustedDomain.findAll(testUtils.context.internal)