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 +35
-9
lines changed Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 12
12
"stream" : " readable-stream"
13
13
},
14
14
"engines" : {
15
- "node" : " >=6 .0.0" ,
16
- "npm" : " >=3 .0.0"
15
+ "node" : " >=10 .0.0" ,
16
+ "npm" : " >6 .0.0"
17
17
},
18
18
"scripts" : {
19
19
"lint" : " aegir lint" ,
39
39
"async" : " ^2.6.1" ,
40
40
"bl" : " ^2.1.2" ,
41
41
"bs58" : " ^4.0.1" ,
42
- "buffer-loader" : " ~0.1.0" ,
43
42
"chai" : " ^4.2.0" ,
44
43
"cids" : " ~0.5.5" ,
45
44
"cross-env" : " ^5.2.0" ,
64
63
"random-fs" : " ^1.0.3" ,
65
64
"rimraf" : " ^2.6.2" ,
66
65
"stream-to-promise" : " ^2.2.0" ,
67
- "transform-loader" : " ~0.2.4"
66
+ "transform-loader" : " ~0.2.4" ,
67
+ "is-ci" : " ^1.2.1"
68
68
},
69
- "contributors" : []
69
+ "contributors" : [],
70
+ "dependencies" : {
71
+ }
70
72
}
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 ,
@@ -48,18 +49,41 @@ const sizes = [
48
49
64 * MB ,
49
50
128 * MB
50
51
// 512 * MB,
51
- // GB
52
+ // GB,
53
+ // 10 * GB,
54
+ // 100 * GB,
55
+ // 1000 * GB
52
56
]
53
57
58
+ if ( isCi ) {
59
+ sizes . push (
60
+ 512 * MB ,
61
+ GB
62
+ // 10 * GB,
63
+ // 100 * GB,
64
+ // 1000 * GB
65
+ )
66
+ }
67
+
54
68
const dirs = [
55
69
5 ,
56
70
10 ,
57
71
50
58
72
// 100,
59
- // 1000
73
+ // 1000,
74
+ // 10000
60
75
]
61
76
62
- const timeout = 240 * 1000
77
+ if ( isCi ) {
78
+ dirs . push (
79
+ 100
80
+ // 1000,
81
+ // 10000
82
+ )
83
+ }
84
+
85
+ const min = 60 * 1000
86
+ const timeout = isCi ? 15 * min : 5 * min
63
87
64
88
describe ( 'exchange files' , ( ) => {
65
89
let goDaemon
You can’t perform that action at this time.
0 commit comments