Title: [220877] trunk/Websites/perf.webkit.org
- Revision
- 220877
- Author
- rn...@webkit.org
- Date
- 2017-08-17 14:23:46 -0700 (Thu, 17 Aug 2017)
Log Message
Build fix. Make the test work with the latest versions of node modules.
* server-tests/privileged-api-upload-file-tests.js:
Modified Paths
Diff
Modified: trunk/Websites/perf.webkit.org/ChangeLog (220876 => 220877)
--- trunk/Websites/perf.webkit.org/ChangeLog 2017-08-17 21:17:34 UTC (rev 220876)
+++ trunk/Websites/perf.webkit.org/ChangeLog 2017-08-17 21:23:46 UTC (rev 220877)
@@ -1,3 +1,9 @@
+2017-08-17 Ryosuke Niwa <rn...@webkit.org>
+
+ Build fix. Make the test work with the latest versions of node modules.
+
+ * server-tests/privileged-api-upload-file-tests.js:
+
2017-07-27 Ryosuke Niwa <rn...@webkit.org>
Build fix. Fixed a typo. task.id() isn't a thing in this function.
Modified: trunk/Websites/perf.webkit.org/server-tests/privileged-api-upload-file-tests.js (220876 => 220877)
--- trunk/Websites/perf.webkit.org/server-tests/privileged-api-upload-file-tests.js 2017-08-17 21:17:34 UTC (rev 220876)
+++ trunk/Websites/perf.webkit.org/server-tests/privileged-api-upload-file-tests.js 2017-08-17 21:23:46 UTC (rev 220877)
@@ -156,7 +156,7 @@
it('should pick up at most two file extensions', () => {
const db = TestServer.database();
const limitInMB = TestServer.testConfig().uploadFileLimitInMB;
- return TemporaryFile.makeTemporaryFileOfSizeInMB('some.other.tar.gz', limitInMB).then((stream) => {
+ return TemporaryFile.makeTemporaryFileOfSizeInMB('some.other.tar.gz5', limitInMB).then((stream) => {
return PrivilegedAPI.sendRequest('upload-file', {newFile: stream}, {useFormData: true});
}).then(() => {
return db.selectAll('uploaded_files', 'id');
@@ -164,8 +164,8 @@
assert.equal(rows.length, 1);
assert.equal(rows[0].size, limitInMB * 1024 * 1024);
assert.equal(rows[0].mime, 'application/octet-stream');
- assert.equal(rows[0].filename, 'some.other.tar.gz');
- assert.equal(rows[0].extension, '.tar.gz');
+ assert.equal(rows[0].filename, 'some.other.tar.gz5');
+ assert.equal(rows[0].extension, '.tar.gz5');
assert.equal(rows[0].sha256, '5256ec18f11624025905d057d6befb03d77b243511ac5f77ed5e0221ce6d84b5');
});
});
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes