@@ -10,16 +10,16 @@ var fs = require('fs'),
1010 createLargeTestFileForPlatform = function ( ) {
1111 switch ( process . platform ) {
1212 case 'linux' :
13- sh . exec ( 'dd if=/dev/zero of=' + TEST_UPLOAD_FILE_LARGE + ' bs=1M count=1' ) ;
13+ sh . exec ( 'dd if=/dev/zero of=' + TEST_UPLOAD_FILE_LARGE + ' bs=50M count=1' ) ;
1414 break ;
1515
1616 case 'win32' :
1717 // 52428800 bytes corresponds to 50 MB file size as fsutil takes size param in bytes
18- sh . exec ( 'fsutil file createnew ' + TEST_UPLOAD_FILE_LARGE + ' 1048576 ' ) ;
18+ sh . exec ( 'fsutil file createnew ' + TEST_UPLOAD_FILE_LARGE + ' 52428800 ' ) ;
1919 break ;
2020
2121 case 'darwin' :
22- sh . exec ( 'mkfile 1M ' + TEST_UPLOAD_FILE_LARGE ) ;
22+ sh . exec ( 'mkfile 50M ' + TEST_UPLOAD_FILE_LARGE ) ;
2323 break ;
2424
2525 default :
@@ -729,7 +729,7 @@ describe('file upload in request body', function () {
729729 var resp = JSON . parse ( testrun . response . getCall ( 0 ) . args [ 2 ] . stream . toString ( ) ) ;
730730
731731 expect ( resp ) . to . nested . include ( {
732- 'headers.content-length' : '1048576 '
732+ 'headers.content-length' : '52428800 '
733733 } ) ;
734734 expect ( resp . headers [ 'content-type' ] ) . to . equal ( 'application/json' ) ;
735735 } ) ;
@@ -741,7 +741,7 @@ describe('file upload in request body', function () {
741741
742742 expect ( resp . files ) . to . have . property ( 'upload-file-large.json' ) ;
743743 expect ( resp ) . to . nested . include ( {
744- 'headers.content-length' : '1048802 '
744+ 'headers.content-length' : '52429026 '
745745 } ) ;
746746 expect ( resp . headers [ 'content-type' ] ) . to . match ( / m u l t i p a r t \/ f o r m - d a t a / ) ;
747747 } ) ;
0 commit comments