@camperaid/watest 2.5.7 → 2.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/series.js CHANGED
@@ -61,8 +61,8 @@ class Series {
61
61
  )
62
62
  .then(
63
63
  () => series.shutdown(),
64
- e => {
65
- let failures = series.shutdown();
64
+ async e => {
65
+ let failures = await series.shutdown();
66
66
  fail(e.message);
67
67
  log_error(e);
68
68
  return failures;
@@ -191,8 +191,8 @@ class Series {
191
191
  await this.perform({ folder: `${this.invocation}/`, tests });
192
192
  }
193
193
 
194
- shutdown() {
195
- this.shutdownServicer();
194
+ async shutdown() {
195
+ await this.shutdownServicer();
196
196
  testflow.unlock();
197
197
 
198
198
  console.log(`Testsuite: shutdown`);
@@ -1101,9 +1101,9 @@ class Series {
1101
1101
  return settings.getServicer(servicerType);
1102
1102
  }
1103
1103
 
1104
- shutdownServicer() {
1104
+ async shutdownServicer() {
1105
1105
  if (this.#servicer) {
1106
- this.#servicer.shutdown();
1106
+ await this.#servicer.shutdown();
1107
1107
  this.#servicer = null;
1108
1108
  }
1109
1109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camperaid/watest",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "Web Application Testsuite",
5
5
  "type": "module",
6
6
  "engines": {
@@ -39,7 +39,7 @@ export async function test() {
39
39
  virtual_folder: 'mac',
40
40
  });
41
41
  series.adjustTestNames(tests, '2');
42
- series.shutdown();
42
+ await series.shutdown();
43
43
 
44
44
  is(
45
45
  tests,
@@ -38,7 +38,7 @@ export async function test() {
38
38
  virtual_folder: 'unit',
39
39
  });
40
40
  series.adjustTestNames(tests, '2');
41
- series.shutdown();
41
+ await series.shutdown();
42
42
 
43
43
  is(
44
44
  tests,
@@ -59,7 +59,7 @@ export async function test() {
59
59
  folder: 'unit',
60
60
  virtual_folder: 'unit',
61
61
  });
62
- series.shutdown();
62
+ await series.shutdown();
63
63
 
64
64
  is(
65
65
  tests,
@@ -31,7 +31,7 @@ export async function test() {
31
31
  folder: 'tests',
32
32
  virtual_folder: 'mac',
33
33
  });
34
- series.shutdown();
34
+ await series.shutdown();
35
35
 
36
36
  is(
37
37
  tests,
@@ -33,7 +33,7 @@ export async function test() {
33
33
  folder: 'tests',
34
34
  virtual_folder: 'mac',
35
35
  });
36
- series.shutdown();
36
+ await series.shutdown();
37
37
 
38
38
  is(
39
39
  tests,
@@ -43,7 +43,7 @@ export async function test() {
43
43
  folder: 'tests',
44
44
  virtual_folder: 'mac',
45
45
  });
46
- series.shutdown();
46
+ await series.shutdown();
47
47
 
48
48
  is(
49
49
  tests,
@@ -37,7 +37,7 @@ export async function test() {
37
37
  folder: 'unit',
38
38
  virtual_folder: 'unit',
39
39
  });
40
- series.shutdown();
40
+ await series.shutdown();
41
41
 
42
42
  is(
43
43
  tests,
@@ -70,7 +70,7 @@ export async function test() {
70
70
  folder: 'tests',
71
71
  virtual_folder: 'mac',
72
72
  });
73
- series.shutdown();
73
+ await series.shutdown();
74
74
 
75
75
  // Should only build the unit folder and its relevant subfolders
76
76
  // Should NOT build integration or e2e folders
@@ -42,7 +42,7 @@ export async function test() {
42
42
  folder: 'tests',
43
43
  virtual_folder: 'mac',
44
44
  });
45
- series.shutdown();
45
+ await series.shutdown();
46
46
 
47
47
  is(
48
48
  tests,
@@ -28,7 +28,7 @@ export async function test() {
28
28
  folder: 'e2e',
29
29
  virtual_folder: 'e2e',
30
30
  });
31
- series.shutdown();
31
+ await series.shutdown();
32
32
 
33
33
  is(
34
34
  tests,
@@ -29,7 +29,7 @@ export async function test() {
29
29
  virtual_folder: 'linux/www',
30
30
  });
31
31
  series.applyRerunSuffix(tests, '5');
32
- series.shutdown();
32
+ await series.shutdown();
33
33
 
34
34
  is(
35
35
  tests,
@@ -31,7 +31,7 @@ export async function test() {
31
31
  folder: 'tests',
32
32
  virtual_folder: 'myrun',
33
33
  });
34
- series.shutdown();
34
+ await series.shutdown();
35
35
 
36
36
  is(
37
37
  tests,
@@ -23,7 +23,7 @@ export async function test() {
23
23
  folder: 'e2e',
24
24
  virtual_folder: 'e2e',
25
25
  });
26
- series.shutdown();
26
+ await series.shutdown();
27
27
 
28
28
  is(
29
29
  tests,
@@ -27,7 +27,7 @@ export async function test() {
27
27
  folder: 'e2e',
28
28
  virtual_folder: 'e2e',
29
29
  });
30
- series.shutdown();
30
+ await series.shutdown();
31
31
 
32
32
  is(
33
33
  tests,
@@ -30,7 +30,7 @@ export async function test() {
30
30
  folder: 'e2e',
31
31
  virtual_folder: 'e2e',
32
32
  });
33
- series.shutdown();
33
+ await series.shutdown();
34
34
 
35
35
  is(
36
36
  tests,
@@ -22,7 +22,7 @@ function make_perform_with_timeout(tests) {
22
22
  try {
23
23
  await series.perform({ folder: 'tests/', tests });
24
24
  } finally {
25
- series.shutdown();
25
+ await series.shutdown();
26
26
  }
27
27
  };
28
28
  }
@@ -71,7 +71,7 @@ export function make_perform_function(tests) {
71
71
  try {
72
72
  await series.perform({ folder: 'tests/', tests: build_tests(tests) });
73
73
  } finally {
74
- series.shutdown();
74
+ await series.shutdown();
75
75
  }
76
76
  };
77
77
  }