balena-supervisor/test
Cameron Diver 932a6f2997
Fix supervisor tests for node v10.12.0 and above
Changes in the node engine related to streams would cause the gzip
streams flush function to be called at the wrong times. The sinon fake
timers were also interacting with this.

We use setImmediate to call the flush function, and remove sinon timers
for the logging tests.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-05-10 12:36:46 +01:00
..
data tests: Add test case for ascending ports issue 2019-01-02 11:31:25 +00:00
lib Rename most of the documentation and variable names from resin to balena 2018-11-01 17:00:13 -07:00
00-init.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
01-constants.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
02-db.spec.coffee refactor: Change export style of db to named 2018-12-21 17:18:33 +00:00
03-config.spec.coffee refactor: Change config modules export type to new-style 2019-01-02 18:12:22 +00:00
04-service.spec.coffee fix: Correctly compare and generate network membership aliases 2019-03-28 10:27:21 +00:00
05-device-state.spec.coffee misc: Fix spurious test errors 2019-04-25 13:48:27 +01:00
06-iptables.spec.coffee Run iptables rules synchronous to avoid locking errors 2019-02-19 17:43:04 +00:00
07-validation.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
08-blink.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
09-event-tracker.spec.coffee Replace offline -> unmanaged in logs and tests 2018-12-17 10:53:24 +00:00
10-network.spec.coffee Add some more unit tests to the multicontainer supervisor 2018-04-30 19:39:01 -07:00
11-api-binder.spec.coffee misc: Fix spurious test errors 2019-04-25 13:48:27 +01:00
12-logger.spec.coffee Fix supervisor tests for node v10.12.0 and above 2019-05-10 12:36:46 +01:00
13-device-config.spec.coffee Fix test for deviceConfig.getDefaults with the addition of SUPERVISOR_INSTANT_UPDATE_TRIGGER 2019-04-03 09:15:50 -07:00
14-application-manager.spec.coffee misc: Fix spurious test errors 2019-04-25 13:48:27 +01:00
15-conversions.spec.coffee Allow newlines to be part of environment variables 2019-02-12 11:19:55 +00:00
16-ports.spec.coffee fix: Correctly handle multiple hosts ports pointing to a container port 2019-04-25 13:48:04 +01:00
17-config-utils.spec.coffee deviceConfig: allow BALENA_ config variables 2018-10-18 17:20:53 +02:00
18-compose-network.coffee Fix coffee-script lint failures 2018-11-02 14:50:12 +00:00
18-startup.coffee fix: Import logger properly and add startup test 2018-09-04 15:53:49 -07:00
19-compose-utils.coffee Fix coffee-script lint failures 2018-11-02 14:50:12 +00:00
mocha.opts tests: Increase timeout for test suites 2018-11-06 15:27:58 +00:00