1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/test/red/runtime/nodes
Jim Turner 6baedf909d Fix #1478 - Project files are not being flushed to disk after being written (#1479)
* Call fsync() before closing file

* Fix race condition in tests due to incorrect stub.

The startFlows() function wasn't really being stubbed, so it was still being called. But there was no corresponding call to stopFlows().

In later tests, the check in Flows.init() was throwing the "Cannot init without a stop" error.

* Test coverage for fsync() calls

For issue #1478

* Revert "Fix race condition in tests due to incorrect stub."

This reverts commit 4f71d7851b.

* Fix race condition in tests due to incorrect stub.

The startFlows() function wasn't really being stubbed, so it was still being called. But there was no corresponding call to stopFlows().

In later tests, the check in Flows.init() was throwing the "Cannot init without a stop" error.

* Fix intermittent test failure in Exec node.

Occasionally, the error text on stderr will come in more than one piece. The test only worked correctly if a single message was received.
2017-11-17 17:29:33 +00:00
..
flows Timeout a node that fails to close - default 15s timeout 2017-05-15 13:05:33 +01:00
registry Fix missing icons for some nodes (#1321) 2017-07-04 09:04:27 +01:00
resources Fix error message for missing node html file, and add test. 2016-11-16 22:46:01 +00:00
context_spec.js Add context.keys function to list top-level keys 2017-05-03 20:51:33 +01:00
credentials_spec.js Update copyright header for JS Foundation 2017-01-11 15:24:33 +00:00
index_spec.js Fix #1478 - Project files are not being flushed to disk after being written (#1479) 2017-11-17 17:29:33 +00:00
library_spec.js Remove event passing for icons/examples from the api layer 2017-02-15 23:07:50 +00:00
Node_spec.js Pass a 'removed' parameter to node close handler 2017-04-21 23:36:21 +01:00