Fix flaky test (#12579)

as title, add missing awaits
This commit is contained in:
martmull
2025-06-13 14:33:56 +02:00
committed by GitHub
parent fdb5764acd
commit 194549b77e
5 changed files with 6 additions and 5 deletions

View File

@ -231,7 +231,8 @@ export class ServerlessFunctionService {
}); });
} }
await this.serverlessService.delete(existingServerlessFunction); // We don't need to await this
this.serverlessService.delete(existingServerlessFunction);
return existingServerlessFunction; return existingServerlessFunction;
} }

View File

@ -22,7 +22,7 @@ export class WorkflowDeleteManyPostQueryHook
_objectName: string, _objectName: string,
payload: WorkflowWorkspaceEntity[], payload: WorkflowWorkspaceEntity[],
): Promise<void> { ): Promise<void> {
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({ await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
workflowIds: payload.map((workflow) => workflow.id), workflowIds: payload.map((workflow) => workflow.id),
workspaceId: authContext.workspace.id, workspaceId: authContext.workspace.id,
operation: 'delete', operation: 'delete',

View File

@ -22,7 +22,7 @@ export class WorkflowDeleteOnePostQueryHook
_objectName: string, _objectName: string,
payload: WorkflowWorkspaceEntity[], payload: WorkflowWorkspaceEntity[],
): Promise<void> { ): Promise<void> {
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({ await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
workflowIds: payload.map((workflow) => workflow.id), workflowIds: payload.map((workflow) => workflow.id),
workspaceId: authContext.workspace.id, workspaceId: authContext.workspace.id,
operation: 'delete', operation: 'delete',

View File

@ -22,7 +22,7 @@ export class WorkflowRestoreManyPostQueryHook
_objectName: string, _objectName: string,
payload: WorkflowWorkspaceEntity[], payload: WorkflowWorkspaceEntity[],
): Promise<void> { ): Promise<void> {
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({ await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
workflowIds: payload.map((workflow) => workflow.id), workflowIds: payload.map((workflow) => workflow.id),
workspaceId: authContext.workspace.id, workspaceId: authContext.workspace.id,
operation: 'restore', operation: 'restore',

View File

@ -22,7 +22,7 @@ export class WorkflowRestoreOnePostQueryHook
_objectName: string, _objectName: string,
payload: WorkflowWorkspaceEntity[], payload: WorkflowWorkspaceEntity[],
): Promise<void> { ): Promise<void> {
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({ await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
workflowIds: payload.map((workflow) => workflow.id), workflowIds: payload.map((workflow) => workflow.id),
workspaceId: authContext.workspace.id, workspaceId: authContext.workspace.id,
operation: 'restore', operation: 'restore',