Build fix. Make the test work with the latest versions of node modules.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Aug 2017 21:23:46 +0000 (21:23 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Aug 2017 21:23:46 +0000 (21:23 +0000)
* server-tests/privileged-api-upload-file-tests.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220877 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/server-tests/privileged-api-upload-file-tests.js

index b63363a..cc1c0f2 100644 (file)
@@ -1,3 +1,9 @@
+2017-08-17  Ryosuke Niwa  <rniwa@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  <rniwa@webkit.org>
 
         Build fix. Fixed a typo. task.id() isn't a thing in this function.
index 7e7f2c8..2c11218 100644 (file)
@@ -156,7 +156,7 @@ describe('/privileged-api/upload-file', function () {
     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 @@ describe('/privileged-api/upload-file', function () {
             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');
         });
     });