Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

What is the safe way to close a renderer test? #13

Open
riatzukiza opened this issue Jun 28, 2018 · 1 comment
Open

What is the safe way to close a renderer test? #13

riatzukiza opened this issue Jun 28, 2018 · 1 comment

Comments

@riatzukiza
Copy link
Contributor

I will run tests on a program, then when its over, avaron never closes.

I have a quit button in my program, I have tried

test.always.after(async () => {click("#quit");})

And then I get:

Error: Object has been destroyed
    at Object.sendMessageToWindow [as sendToWindow] (/home/aaron/devel/contracts/jay-toy/thought-drop/client/node_modules/avaron/main/messages.js:6:9)
    at process.on.message (/home/aaron/devel/contracts/jay-toy/thought-drop/client/node_modules/avaron/main/initialize-renderer.js:24:12)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:772:12)
    at _combinedTickCallback (internal/process/next_tick.js:141:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

  2 passed
  1 exception

  Uncaught Exception
  Error: Object has been destroyed
    Object.sendMessageToWindow [as sendToWindow] (node_modules/avaron/main/messages.js:6:9)
    process.on.message (node_modules/avaron/main/initialize-renderer.js:24:12)
Failed with exit code: 1
Output:

error Command failed with exit code 255.
@riatzukiza riatzukiza changed the title What is the safe way to close a renderer context? What is the safe way to close a renderer test? Jun 28, 2018
@bokuweb
Copy link
Owner

bokuweb commented Jun 29, 2018

@riatzukiza Thanks for your report. Could you please provide reproduced project if you get a chance?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants