We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f232a commit da224ffCopy full SHA for da224ff
build-tests/rush-redis-cobuild-plugin-integration-test/src/testLockProvider.ts
@@ -43,7 +43,18 @@ async function main(): Promise<void> {
43
console.log('Completed state: ', completedState);
44
await lockProvider.disconnectAsync();
45
}
46
-main().catch((err) => {
47
- console.error(err);
48
- process.exit(1);
49
-});
+
+process.exitCode = 1;
+main()
50
+ .then(() => {
51
+ process.exitCode = 0;
52
+ })
53
+ .catch((err) => {
54
+ console.error(err);
55
56
+ .finally(() => {
57
+ if (process.exitCode !== undefined) {
58
+ process.exit(process.exitCode);
59
+ }
60
+ });
0 commit comments