mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(ci): repair admin test config and a ttl race in api tests (#3054)
This commit is contained in:
@@ -354,12 +354,10 @@ fn test_config(api_endpoint: String) -> AdminConfig {
|
||||
static_cdn_endpoint: "https://static.example.test".to_owned(),
|
||||
admin_endpoint: "https://admin.example.test".to_owned(),
|
||||
web_app_endpoint: "https://app.example.test".to_owned(),
|
||||
kv_url: String::new(),
|
||||
oauth_client_id: "admin-client".to_owned(),
|
||||
oauth_client_secret: "admin-secret".to_owned(),
|
||||
oauth_redirect_uri: "https://admin.example.test/callback".to_owned(),
|
||||
build_version: "test".to_owned(),
|
||||
release_channel: "test".to_owned(),
|
||||
self_hosted: false,
|
||||
proxy: ProxyConfig {
|
||||
trust_client_ip_header: false,
|
||||
|
||||
@@ -62,7 +62,9 @@ describe('queueBlocklistFeedStartupJobs', () => {
|
||||
expect(await kv.exists(INITIAL_SYNC_KEY)).toBe(0);
|
||||
|
||||
await queueBlocklistFeedStartupJobs(kv, createWorkerService(), true);
|
||||
expect(await kv.ttl(INITIAL_SYNC_KEY)).toBe(21600);
|
||||
const ttl = await kv.ttl(INITIAL_SYNC_KEY);
|
||||
expect(ttl).toBeGreaterThanOrEqual(21599);
|
||||
expect(ttl).toBeLessThanOrEqual(21600);
|
||||
});
|
||||
|
||||
it('a full jobs stream drops the job without failing startup', async () => {
|
||||
|
||||
Reference in New Issue
Block a user