diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-04-11 06:00:57 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-04-11 06:00:57 +0300 |
commit | d5a329b285acafbb71c498a9b0dab3511a4ee45c (patch) | |
tree | d78582bf111f314056ba5e4dbe2e129dc399674f /tests/lib | |
parent | 92bb72883c53c77a1c7adce13dcf817127188764 (diff) |
Select 10 times more rows so that resultset after grouping is more likely to contain enough records
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/screenshot-testing/support/chai-extras.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/screenshot-testing/support/chai-extras.js b/tests/lib/screenshot-testing/support/chai-extras.js index 14e8c8a796..36fbed3df7 100644 --- a/tests/lib/screenshot-testing/support/chai-extras.js +++ b/tests/lib/screenshot-testing/support/chai-extras.js @@ -263,14 +263,14 @@ function compareContents(compareAgainst, pageSetupFn, done) { var processed = pageRenderer.getPageContents(); - fs.write(processedFilePath, processed); + fs.write(testInfo.processed, processed); - if (!fs.isFile(expectedFilePath)) { - fail("No expected output file found at " + expectedFilePath + "."); + if (!fs.isFile(testInfo.expected)) { + fail("No expected output file found at " + testInfo.expected + "."); return; } - var expected = fs.read(expectedFilePath); + var expected = fs.read(testInfo.expected); if (processed == expected) { pass(); |