mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Test coverage for NodeStatsTracker
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user