locking test improvements

pull/496/head
Frostebite 2023-02-14 00:11:56 +00:00
parent 33091c84ac
commit d5ec49a174
4 changed files with 5 additions and 5 deletions

4
dist/index.js generated vendored
View File

@ -1744,7 +1744,7 @@ class AWSTaskRunner {
if (taskData.stoppedReason === 'Essential container in task exited' && exitCode === 1) { if (taskData.stoppedReason === 'Essential container in task exited' && exitCode === 1) {
throw new Error('Container exited with code 1'); throw new Error('Container exited with code 1');
} }
throw new Error(`K8s task failed`); throw new Error(`Task failed`);
}); });
} }
static waitUntilTaskRunning(taskArn, cluster) { static waitUntilTaskRunning(taskArn, cluster) {
@ -3374,7 +3374,7 @@ class Kubernetes {
continue; continue;
} }
else { else {
cloud_runner_logger_1.default.log(`error running k8s workflow ${JSON.parse(error)}`); cloud_runner_logger_1.default.log(`error running k8s workflow ${error}`);
throw error; throw error;
} }
} }

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -91,7 +91,7 @@ class AWSTaskRunner {
throw new Error('Container exited with code 1'); throw new Error('Container exited with code 1');
} }
throw new Error(`K8s task failed`); throw new Error(`Task failed`);
} }
private static async waitUntilTaskRunning(taskArn: string, cluster: string) { private static async waitUntilTaskRunning(taskArn: string, cluster: string) {

View File

@ -192,7 +192,7 @@ class Kubernetes implements ProviderInterface {
await new Promise((resolve) => resolve(5000)); await new Promise((resolve) => resolve(5000));
continue; continue;
} else { } else {
CloudRunnerLogger.log(`error running k8s workflow ${JSON.parse(error)}`); CloudRunnerLogger.log(`error running k8s workflow ${error}`);
throw error; throw error;
} }
} }