@@ -10,16 +10,16 @@ var fs = require('fs'),
10
10
createLargeTestFileForPlatform = function ( ) {
11
11
switch ( process . platform ) {
12
12
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' ) ;
14
14
break ;
15
15
16
16
case 'win32' :
17
17
// 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 ' ) ;
19
19
break ;
20
20
21
21
case 'darwin' :
22
- sh . exec ( 'mkfile 1M ' + TEST_UPLOAD_FILE_LARGE ) ;
22
+ sh . exec ( 'mkfile 50M ' + TEST_UPLOAD_FILE_LARGE ) ;
23
23
break ;
24
24
25
25
default :
@@ -729,7 +729,7 @@ describe('file upload in request body', function () {
729
729
var resp = JSON . parse ( testrun . response . getCall ( 0 ) . args [ 2 ] . stream . toString ( ) ) ;
730
730
731
731
expect ( resp ) . to . nested . include ( {
732
- 'headers.content-length' : '1048576 '
732
+ 'headers.content-length' : '52428800 '
733
733
} ) ;
734
734
expect ( resp . headers [ 'content-type' ] ) . to . equal ( 'application/json' ) ;
735
735
} ) ;
@@ -741,7 +741,7 @@ describe('file upload in request body', function () {
741
741
742
742
expect ( resp . files ) . to . have . property ( 'upload-file-large.json' ) ;
743
743
expect ( resp ) . to . nested . include ( {
744
- 'headers.content-length' : '1048802 '
744
+ 'headers.content-length' : '52429026 '
745
745
} ) ;
746
746
expect ( resp . headers [ 'content-type' ] ) . to . match ( / m u l t i p a r t \/ f o r m - d a t a / ) ;
747
747
} ) ;
0 commit comments