Skip to content

Commit 7c030ae

Browse files
author
Joanna Grycz
committed
Add missing await and strict assertion in tests
1 parent acf9fba commit 7c030ae

13 files changed

+13
-13
lines changed

batch/create/create_batch_custom_network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async function main() {
124124
console.log(JSON.stringify(response));
125125
}
126126

127-
callCreateBatchCustomNetwork();
127+
await callCreateBatchCustomNetwork();
128128
// [END batch_create_custom_network]
129129
}
130130

batch/test/create_batch_custom_events.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_batch_custom_network.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_batch_labels_allocation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_batch_labels_job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_batch_notifications.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_batch_using_service_account.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_gpu_job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_gpu_job_n1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_local_ssd_job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_nfs_job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_persistent_disk_job.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

batch/test/create_using_secret_manager.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'use strict';
1818

1919
const path = require('path');
20-
const assert = require('assert');
20+
const assert = require('node:assert/strict');
2121
const {describe, it} = require('mocha');
2222
const cp = require('child_process');
2323
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

0 commit comments

Comments
 (0)