fix: mocha テストが動かないのを修正 v2 (#8892)
* on push
* Fix mute test
* fix note test
* api
* inc timeout
* uploadUrl
* Revert "on push"
This reverts commit 778a58df61
.
* lint
* waitFire
* Wrap connectStream
* return
This commit is contained in:
@@ -7,6 +7,8 @@ import { IEndpointMeta } from './endpoints.js';
|
||||
const logger = new Logger('limiter');
|
||||
|
||||
export const limiter = (limitation: IEndpointMeta['limit'] & { key: NonNullable<string> }, actor: string) => new Promise<void>((ok, reject) => {
|
||||
if (process.env.NODE_ENV === 'test') ok();
|
||||
|
||||
const hasShortTermLimit = typeof limitation.minInterval === 'number';
|
||||
|
||||
const hasLongTermLimit =
|
||||
|
Reference in New Issue
Block a user