Skip to content

Commit 80f5f83

Browse files
authored
fix: flaky unit tests (#9251)
1 parent 8cbf079 commit 80f5f83

20 files changed

+875
-794
lines changed

test/snapshots/concurrentBuildsTest.js.snap

Lines changed: 179 additions & 179 deletions
Large diffs are not rendered by default.

test/snapshots/filesTest.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ exports[`extraResources on Linux 1`] = `
1717
exports[`extraResources on Windows 1`] = `
1818
{
1919
"win": [
20-
{
21-
"arch": "x64",
22-
"file": "RELEASES",
23-
},
2420
{
2521
"arch": "x64",
2622
"file": "Test App ßW Setup 1.1.0.exe",
@@ -30,6 +26,10 @@ exports[`extraResources on Windows 1`] = `
3026
"arch": "x64",
3127
"file": "TestApp-1.1.0-full.nupkg",
3228
},
29+
{
30+
"arch": "x64",
31+
"file": "RELEASES",
32+
},
3333
],
3434
}
3535
`;

test/snapshots/linux/debTest.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
exports[`arm 1`] = `
44
{
55
"linux": [
6-
{
7-
"arch": "armv7l",
8-
"file": "TestApp_1.1.0_armv7l.deb",
9-
},
106
{
117
"arch": "arm64",
128
"file": "TestApp_1.1.0_arm64.deb",
139
},
10+
{
11+
"arch": "armv7l",
12+
"file": "TestApp_1.1.0_armv7l.deb",
13+
},
1414
],
1515
}
1616
`;

test/snapshots/linux/fpmTest.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ exports[`rpm and tar.gz 1`] = `
1818
exports[`targets 1`] = `
1919
{
2020
"linux": [
21+
{
22+
"arch": "x64",
23+
"file": "TestApp-1.1.0.zip",
24+
},
2125
{
2226
"arch": "x64",
2327
"file": "TestApp-1.1.0.7z",
@@ -34,10 +38,6 @@ exports[`targets 1`] = `
3438
"arch": "x64",
3539
"file": "TestApp-1.1.0.sh",
3640
},
37-
{
38-
"arch": "x64",
39-
"file": "TestApp-1.1.0.zip",
40-
},
4141
],
4242
}
4343
`;

test/snapshots/linux/linuxArchiveTest.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ exports[`tar 1`] = `
55
"linux": [
66
{
77
"arch": "x64",
8-
"file": "TestApp-1.1.0.tar.bz2",
8+
"file": "TestApp-1.1.0.tar.xz",
99
},
1010
{
1111
"arch": "x64",
12-
"file": "TestApp-1.1.0.tar.lz",
12+
"file": "TestApp-1.1.0.tar.bz2",
1313
},
1414
{
1515
"arch": "x64",
16-
"file": "TestApp-1.1.0.tar.xz",
16+
"file": "TestApp-1.1.0.tar.lz",
1717
},
1818
],
1919
}

test/snapshots/mac/dmgTest.js.snap

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ exports[`dmg > bundleShortVersion 1`] = `
228228
{
229229
"mac": [
230230
{
231-
"file": "Bundle-ShortVersion-2017.1-alpha5.dmg.blockmap",
231+
"arch": "x64",
232+
"file": "Bundle-ShortVersion-2017.1-alpha5.dmg",
232233
"updateInfo": {
233234
"sha512": "@sha512",
234235
"size": "@size",
235236
},
236237
},
237238
{
238-
"arch": "x64",
239-
"file": "Bundle-ShortVersion-2017.1-alpha5.dmg",
239+
"file": "Bundle-ShortVersion-2017.1-alpha5.dmg.blockmap",
240240
"updateInfo": {
241241
"sha512": "@sha512",
242242
"size": "@size",
@@ -297,16 +297,16 @@ exports[`dmg > custom background - new way 1`] = `
297297
{
298298
"mac": [
299299
{
300-
"file": "CustomBackground-1.1.0-mac.zip.blockmap",
301-
"safeArtifactName": "CustomBackground-1.1.0-mac.zip.blockmap",
300+
"arch": "x64",
301+
"file": "CustomBackground-1.1.0-mac.zip",
302302
"updateInfo": {
303303
"sha512": "@sha512",
304304
"size": "@size",
305305
},
306306
},
307307
{
308-
"arch": "x64",
309-
"file": "CustomBackground-1.1.0-mac.zip",
308+
"file": "CustomBackground-1.1.0-mac.zip.blockmap",
309+
"safeArtifactName": "CustomBackground-1.1.0-mac.zip.blockmap",
310310
"updateInfo": {
311311
"sha512": "@sha512",
312312
"size": "@size",
@@ -367,16 +367,16 @@ exports[`dmg > disable dmg icon (light), bundleVersion 1`] = `
367367
{
368368
"mac": [
369369
{
370-
"file": "Disable-Icon-1.1.0-mac.zip.blockmap",
371-
"safeArtifactName": "Disable-Icon-1.1.0-mac.zip.blockmap",
370+
"arch": "x64",
371+
"file": "Disable-Icon-1.1.0-mac.zip",
372372
"updateInfo": {
373373
"sha512": "@sha512",
374374
"size": "@size",
375375
},
376376
},
377377
{
378-
"arch": "x64",
379-
"file": "Disable-Icon-1.1.0-mac.zip",
378+
"file": "Disable-Icon-1.1.0-mac.zip.blockmap",
379+
"safeArtifactName": "Disable-Icon-1.1.0-mac.zip.blockmap",
380380
"updateInfo": {
381381
"sha512": "@sha512",
382382
"size": "@size",
@@ -437,15 +437,15 @@ exports[`dmg > dmg 1`] = `
437437
{
438438
"mac": [
439439
{
440-
"file": "Default-Dmg-1.1.0.dmg.blockmap",
440+
"arch": "x64",
441+
"file": "Default-Dmg-1.1.0.dmg",
441442
"updateInfo": {
442443
"sha512": "@sha512",
443444
"size": "@size",
444445
},
445446
},
446447
{
447-
"arch": "x64",
448-
"file": "Default-Dmg-1.1.0.dmg",
448+
"file": "Default-Dmg-1.1.0.dmg.blockmap",
449449
"updateInfo": {
450450
"sha512": "@sha512",
451451
"size": "@size",
@@ -564,15 +564,15 @@ exports[`dmg > license buttons config 2`] = `
564564
{
565565
"mac": [
566566
{
567-
"file": "Foo-5-1.1.0.dmg.blockmap",
567+
"arch": "x64",
568+
"file": "Foo-5-1.1.0.dmg",
568569
"updateInfo": {
569570
"sha512": "@sha512",
570571
"size": "@size",
571572
},
572573
},
573574
{
574-
"arch": "x64",
575-
"file": "Foo-5-1.1.0.dmg",
575+
"file": "Foo-5-1.1.0.dmg.blockmap",
576576
"updateInfo": {
577577
"sha512": "@sha512",
578578
"size": "@size",
@@ -633,15 +633,15 @@ exports[`dmg > license en 1`] = `
633633
{
634634
"mac": [
635635
{
636-
"file": "Foo-3-1.1.0.dmg.blockmap",
636+
"arch": "x64",
637+
"file": "Foo-3-1.1.0.dmg",
637638
"updateInfo": {
638639
"sha512": "@sha512",
639640
"size": "@size",
640641
},
641642
},
642643
{
643-
"arch": "x64",
644-
"file": "Foo-3-1.1.0.dmg",
644+
"file": "Foo-3-1.1.0.dmg.blockmap",
645645
"updateInfo": {
646646
"sha512": "@sha512",
647647
"size": "@size",
@@ -702,15 +702,15 @@ exports[`dmg > license ja 1`] = `
702702
{
703703
"mac": [
704704
{
705-
"file": "Foo-2-1.1.0.dmg.blockmap",
705+
"arch": "x64",
706+
"file": "Foo-2-1.1.0.dmg",
706707
"updateInfo": {
707708
"sha512": "@sha512",
708709
"size": "@size",
709710
},
710711
},
711712
{
712-
"arch": "x64",
713-
"file": "Foo-2-1.1.0.dmg",
713+
"file": "Foo-2-1.1.0.dmg.blockmap",
714714
"updateInfo": {
715715
"sha512": "@sha512",
716716
"size": "@size",
@@ -771,15 +771,15 @@ exports[`dmg > license rtf 1`] = `
771771
{
772772
"mac": [
773773
{
774-
"file": "Foo-4-1.1.0.dmg.blockmap",
774+
"arch": "x64",
775+
"file": "Foo-4-1.1.0.dmg",
775776
"updateInfo": {
776777
"sha512": "@sha512",
777778
"size": "@size",
778779
},
779780
},
780781
{
781-
"arch": "x64",
782-
"file": "Foo-4-1.1.0.dmg",
782+
"file": "Foo-4-1.1.0.dmg.blockmap",
783783
"updateInfo": {
784784
"sha512": "@sha512",
785785
"size": "@size",
@@ -840,15 +840,15 @@ exports[`dmg > multi language license 1`] = `
840840
{
841841
"mac": [
842842
{
843-
"file": "Foo-1-1.1.0.dmg.blockmap",
843+
"arch": "x64",
844+
"file": "Foo-1-1.1.0.dmg",
844845
"updateInfo": {
845846
"sha512": "@sha512",
846847
"size": "@size",
847848
},
848849
},
849850
{
850-
"arch": "x64",
851-
"file": "Foo-1-1.1.0.dmg",
851+
"file": "Foo-1-1.1.0.dmg.blockmap",
852852
"updateInfo": {
853853
"sha512": "@sha512",
854854
"size": "@size",
@@ -909,15 +909,15 @@ exports[`dmg > no background 1`] = `
909909
{
910910
"mac": [
911911
{
912-
"file": "No-Background-1.1.0.dmg.blockmap",
912+
"arch": "x64",
913+
"file": "No-Background-1.1.0.dmg",
913914
"updateInfo": {
914915
"sha512": "@sha512",
915916
"size": "@size",
916917
},
917918
},
918919
{
919-
"arch": "x64",
920-
"file": "No-Background-1.1.0.dmg",
920+
"file": "No-Background-1.1.0.dmg.blockmap",
921921
"updateInfo": {
922922
"sha512": "@sha512",
923923
"size": "@size",
@@ -996,15 +996,15 @@ exports[`dmg > no build directory 2`] = `
996996
{
997997
"mac": [
998998
{
999-
"file": "NoBuildDirectory-1.1.0.dmg.blockmap",
999+
"arch": "x64",
1000+
"file": "NoBuildDirectory-1.1.0.dmg",
10001001
"updateInfo": {
10011002
"sha512": "@sha512",
10021003
"size": "@size",
10031004
},
10041005
},
10051006
{
1006-
"arch": "x64",
1007-
"file": "NoBuildDirectory-1.1.0.dmg",
1007+
"file": "NoBuildDirectory-1.1.0.dmg.blockmap",
10081008
"updateInfo": {
10091009
"sha512": "@sha512",
10101010
"size": "@size",
@@ -1065,16 +1065,16 @@ exports[`dmg > retina background as 2 png 1`] = `
10651065
{
10661066
"mac": [
10671067
{
1068-
"file": "RetinaBackground-1.1.0-mac.zip.blockmap",
1069-
"safeArtifactName": "RetinaBackground-1.1.0-mac.zip.blockmap",
1068+
"arch": "x64",
1069+
"file": "RetinaBackground-1.1.0-mac.zip",
10701070
"updateInfo": {
10711071
"sha512": "@sha512",
10721072
"size": "@size",
10731073
},
10741074
},
10751075
{
1076-
"arch": "x64",
1077-
"file": "RetinaBackground-1.1.0-mac.zip",
1076+
"file": "RetinaBackground-1.1.0-mac.zip.blockmap",
1077+
"safeArtifactName": "RetinaBackground-1.1.0-mac.zip.blockmap",
10781078
"updateInfo": {
10791079
"sha512": "@sha512",
10801080
"size": "@size",
@@ -1135,15 +1135,15 @@ exports[`dmg > unset dmg icon 1`] = `
11351135
{
11361136
"mac": [
11371137
{
1138-
"file": "No_Volume_Icon-1.1.0.dmg.blockmap",
1138+
"arch": "x64",
1139+
"file": "No_Volume_Icon-1.1.0.dmg",
11391140
"updateInfo": {
11401141
"sha512": "@sha512",
11411142
"size": "@size",
11421143
},
11431144
},
11441145
{
1145-
"arch": "x64",
1146-
"file": "No_Volume_Icon-1.1.0.dmg",
1146+
"file": "No_Volume_Icon-1.1.0.dmg.blockmap",
11471147
"updateInfo": {
11481148
"sha512": "@sha512",
11491149
"size": "@size",

test/snapshots/mac/macArchiveTest.js.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ exports[`extraDistFiles 1`] = `
6363
{
6464
"mac": [
6565
{
66-
"file": "Test App ßW-1.1.0-mac.zip.blockmap",
67-
"safeArtifactName": "Test App ßW-1.1.0-mac.zip.blockmap",
66+
"arch": "x64",
67+
"file": "Test App ßW-1.1.0-mac.zip",
68+
"safeArtifactName": "TestApp-1.1.0-mac.zip",
6869
"updateInfo": {
6970
"sha512": "@sha512",
7071
"size": "@size",
7172
},
7273
},
7374
{
74-
"arch": "x64",
75-
"file": "Test App ßW-1.1.0-mac.zip",
76-
"safeArtifactName": "TestApp-1.1.0-mac.zip",
75+
"file": "Test App ßW-1.1.0-mac.zip.blockmap",
76+
"safeArtifactName": "Test App ßW-1.1.0-mac.zip.blockmap",
7777
"updateInfo": {
7878
"sha512": "@sha512",
7979
"size": "@size",
@@ -152,17 +152,17 @@ exports[`only zip 1`] = `
152152
{
153153
"mac": [
154154
{
155-
"file": "Test App ßW-1.1.0-mac.zip.blockmap",
156-
"safeArtifactName": "Test App ßW-1.1.0-mac.zip.blockmap",
155+
"arch": "x64",
156+
"file": "Test App ßW-1.1.0-mac.zip",
157+
"safeArtifactName": "TestApp-1.1.0-mac.zip",
157158
"updateInfo": {
158159
"sha512": "@sha512",
159160
"size": "@size",
160161
},
161162
},
162163
{
163-
"arch": "x64",
164-
"file": "Test App ßW-1.1.0-mac.zip",
165-
"safeArtifactName": "TestApp-1.1.0-mac.zip",
164+
"file": "Test App ßW-1.1.0-mac.zip.blockmap",
165+
"safeArtifactName": "Test App ßW-1.1.0-mac.zip.blockmap",
166166
"updateInfo": {
167167
"sha512": "@sha512",
168168
"size": "@size",

0 commit comments

Comments
 (0)