refactor: Use isSucceededNonTestRun naming for execution steps

This commit is contained in:
Faruk AYDIN
2024-10-09 15:41:27 +02:00
parent f6490990de
commit 4ce9976dbc
2 changed files with 12 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ class ExecutionStep extends Base {
return this.status === 'failure';
}
async isNormalSucceededRun() {
async isSucceededNonTestRun() {
const execution = await this.$relatedQuery('execution');
return !execution.testRun && !this.isFailed;
}
@@ -63,7 +63,7 @@ class ExecutionStep extends Base {
}
async increaseUsageCount() {
if (appConfig.isCloud && this.isNormalSucceededRun()) {
if (appConfig.isCloud && this.isSucceededNonTestRun()) {
await this.updateUsageData();
}
}