Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some unit tests failing on macOS #7240

Open
willeastcott opened this issue Dec 24, 2024 · 0 comments
Open

Some unit tests failing on macOS #7240

willeastcott opened this issue Dec 24, 2024 · 0 comments

Comments

@willeastcott
Copy link
Contributor

7 unit tests fail on macOS. This seems related to problems loading PNGs in JSDOM on macOS. This problem does not occur on Windows or Linux.

Mocha output:

  1359 passing (44s)
  2 pending
  8 failing

  1) AssetReference
       should call load callback when asset is loaded:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/asset/asset-reference.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  2) AssetRegistry
       #loadFromUrl
         loads texture assets:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/asset/asset-registry.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  3) ImageElement
       "before each" hook for "Add Image Element":
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/components/element/image-element.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  4) TextElement
       "before each" hook for "does not break onto multiple lines if the text is short enough":
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/components/element/text-element.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  5) ParticleSystemComponent
       "before each" hook for "Add particlesystem":
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/components/particlesystem/component.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  6) SpriteComponent
       "before each" hook for "Add new Component":
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/components/sprite/component.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  7) SpriteHandler
       loads from filesystem:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/handlers/sprite-handler.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)

  8) SpriteHandler
       loads from asset data:
     Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/willeastcott/Dev/engine/test/framework/handlers/sprite-handler.test.mjs)
      at listOnTimeout (node:internal/timers:573:17)
      at process.processTimers (node:internal/timers:514:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant