Release v2.15.2
This commit is contained in:
1 parent
ddcc665f81
commit
7295f83f04
43 files changed
+2526
-104
No files matched your search
@@ -3,7 +3,7 @@ const assert = require('node:assert/strict');
|
||||
|
||||
const { pruneStaleOnboardingDevices } = require('../src/db/common');
|
||||
|
||||
test('prunes old unbound onboarding devices without deleting completed bindings', async () => {
|
||||
test('prunes old unbound pairings and stale screen bindings', async () => {
|
||||
let queryText = '';
|
||||
const pool = {
|
||||
async query(sql) {
|
||||
@@ -16,7 +16,7 @@ test('prunes old unbound onboarding devices without deleting completed bindings'
|
||||
|
||||
assert.match(queryText, /screen_id IS NULL/);
|
||||
assert.match(queryText, /modified_at < \(CURRENT_TIMESTAMP - INTERVAL 15 MINUTE\)/);
|
||||
assert.match(queryText, /last_seen_at < \(CURRENT_TIMESTAMP - INTERVAL 24 HOUR\)/);
|
||||
assert.match(queryText, /COALESCE\(last_seen_at, modified_at\) < \(CURRENT_TIMESTAMP - INTERVAL 24 HOUR\)/);
|
||||
assert.doesNotMatch(queryText, /d_players\.identifier = d_onboarding_devices\.device_id/);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user