v0.32.6_fix2
This commit is contained in:
1 parent
e1ac899ec0
commit
fc8711d4d8
39 files changed
+695
-232
No files matched your search
@@ -95,7 +95,7 @@ function fixture({ withoutSse = false } = {}) {
|
||||
|
||||
const h = fixture();
|
||||
h.registerViews();
|
||||
assert.equal(h.refresh.current().overview_seconds, 2);
|
||||
assert.equal(h.refresh.current().overview_seconds, 3);
|
||||
assert.equal(h.refresh.current().system_info_seconds, 60);
|
||||
assert.equal(h.refresh.current().traffic_seconds, 5);
|
||||
assert.equal(h.refresh.current().cache_seconds, 5);
|
||||
@@ -103,7 +103,7 @@ assert.equal(h.refresh.current().live_enabled, true);
|
||||
assert.equal(h.streams.length, 0);
|
||||
h.refresh.start(); await h.advance();
|
||||
assert.equal(h.streams.length, 1, "one shared SSE connection");
|
||||
assert.equal(h.streams[0].url, "/api/events?interval=2");
|
||||
assert.equal(h.streams[0].url, "/api/events?interval=3");
|
||||
assert.equal(h.count("/api/traffic"), 0, "no Traffic on Overview");
|
||||
assert.equal(h.count("/api/cache"), 0, "no Cache on Overview");
|
||||
assert.equal(h.count("/api/system-info"), 1, "Overview uses slow diagnostics");
|
||||
@@ -231,7 +231,7 @@ const invalid = runInNewContext(scheduler + ";normalizeRefreshPreferences({ live
|
||||
liveFallback: false, stopLive() {}, startLive() {}, $: () => null
|
||||
});
|
||||
assert.equal(invalid.live_enabled, true);
|
||||
assert.equal(invalid.overview_seconds, 2);
|
||||
assert.equal(invalid.overview_seconds, 3);
|
||||
assert.equal(invalid.traffic_seconds, 5);
|
||||
assert.equal(invalid.cache_seconds, 0);
|
||||
assert.equal(invalid.system_info_seconds, 300);
|
||||
|
||||
Reference in new issue
Block a user