This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 66
66
"stream-to-promise" : " ^2.2.0" ,
67
67
"transform-loader" : " ~0.2.4"
68
68
},
69
- "contributors" : []
69
+ "contributors" : [],
70
+ "dependencies" : {
71
+ "is-ci" : " ^1.2.1"
72
+ }
70
73
}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const rimraf = require('rimraf')
17
17
const join = require ( 'path' ) . join
18
18
const os = require ( 'os' )
19
19
const hat = require ( 'hat' )
20
+ const isCi = require ( 'is-ci' )
20
21
21
22
// const isWindows = os.platform() === 'win32'
22
23
@@ -32,7 +33,7 @@ function tmpDir () {
32
33
33
34
const KB = 1024
34
35
const MB = KB * 1024
35
- // const GB = MB * 1024
36
+ const GB = MB * 1024
36
37
37
38
const sizes = [
38
39
KB ,
@@ -49,17 +50,38 @@ const sizes = [
49
50
128 * MB
50
51
// 512 * MB,
51
52
// GB
53
+ // 10 * GB
54
+ // 100 * GB
52
55
]
53
56
57
+ if ( isCi ) {
58
+ sizes . push (
59
+ 512 * MB ,
60
+ GB
61
+ // 10 * GB
62
+ // 100 * GB
63
+ )
64
+ }
65
+
54
66
const dirs = [
55
67
5 ,
56
68
10 ,
57
69
50
58
70
// 100,
59
- // 1000
71
+ // 1000,
72
+ // 10000
60
73
]
61
74
62
- const timeout = 240 * 1000
75
+ if ( isCi ) {
76
+ dirs . push (
77
+ 100
78
+ // 1000,
79
+ // 10000
80
+ )
81
+ }
82
+
83
+ const min = 60 * 1000
84
+ const timeout = isCi ? 15 * min : 5 * min
63
85
64
86
describe ( 'exchange files' , ( ) => {
65
87
let goDaemon
You can’t perform that action at this time.
0 commit comments