Skip to content

Commit

Permalink
Add physic unit test timeout (#1717)
Browse files Browse the repository at this point in the history
* fix: add physic unit test timeout
  • Loading branch information
luzhuang authored Aug 30, 2023
1 parent dc84c4a commit 2312080
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/src/core/physics/CharacterController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion tests/src/core/physics/Collider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2312080

Please sign in to comment.