From 2312080fdee1755f1cb57bbe2a5d6099143202ec Mon Sep 17 00:00:00 2001 From: luzhuang <364439895@qq.com> Date: Wed, 30 Aug 2023 15:26:24 +0800 Subject: [PATCH] Add physic unit test timeout (#1717) * fix: add physic unit test timeout --- tests/src/core/physics/CharacterController.test.ts | 4 +++- tests/src/core/physics/Collider.test.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/src/core/physics/CharacterController.test.ts b/tests/src/core/physics/CharacterController.test.ts index 7b9604b9fd..4a5403e7a8 100644 --- a/tests/src/core/physics/CharacterController.test.ts +++ b/tests/src/core/physics/CharacterController.test.ts @@ -4,7 +4,9 @@ import { PhysXPhysics } from "@galacean/engine-physics-physx"; import { WebGLEngine } from "@galacean/engine-rhi-webgl"; import { expect } from "chai"; -describe("physics collider test", () => { +describe("physics collider test", function () { + this.timeout(5000); + let engine: WebGLEngine; let rootEntity: Entity; let controllerEntity: Entity; diff --git a/tests/src/core/physics/Collider.test.ts b/tests/src/core/physics/Collider.test.ts index f7ac895b74..f2d9b32637 100644 --- a/tests/src/core/physics/Collider.test.ts +++ b/tests/src/core/physics/Collider.test.ts @@ -38,7 +38,9 @@ class MoveScript extends Script { } } -describe("physics collider test", () => { +describe("physics collider test", function () { + this.timeout(5000); + let engine: WebGLEngine; let rootEntity: Entity; let boxEntity: Entity;