feature: events polling

This commit is contained in:
Andy Burke 2025-07-02 21:28:07 -07:00
parent 61a51017a3
commit b700251278
19 changed files with 353 additions and 77 deletions

View file

@ -2,6 +2,7 @@ import { api, API_CLIENT } from '../../../utils/api.ts';
import * as asserts from 'jsr:@std/assert';
import { EPHEMERAL_SERVER, get_ephemeral_listen_server, get_new_user, set_user_permissions } from '../../helpers.ts';
import { generateTotp } from '@stdext/crypto/totp';
import { clear_room_events_cache } from '../../../models/event.ts';
Deno.test({
name: 'API - ROOMS - Update',
@ -91,6 +92,7 @@ Deno.test({
asserts.assertEquals(updated_by_other_user_room.topic, 'this is a newer topic');
asserts.assertEquals(updated_by_other_user_room.permissions.write, [user_info.user.id, other_user_info.user.id]);
} finally {
clear_room_events_cache();
if (test_server_info) {
await test_server_info?.server?.stop();
}