Test coverage for NodeStatsTracker

This commit is contained in:
Michael Lange
2018-08-31 14:37:13 -07:00
parent 3c0977702e
commit f8c8c3cec4
6 changed files with 237 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import Ember from 'ember';
import { alias } from '@ember/object/computed';
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
@@ -25,10 +26,10 @@ export default Controller.extend(Sortable, {
}),
pollStats: task(function*() {
while (true) {
do {
yield this.get('stats').poll();
yield timeout(1000);
}
} while (!Ember.testing);
}),
actions: {