mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 04:11:57 +00:00
chore: Fix the testing of the output.ts
This commit is contained in:
@@ -40,8 +40,8 @@ async function timeoutHealth(
|
||||
const defaultParams = {
|
||||
defaultIntervalS: 60,
|
||||
defaultTimeoutS: 10,
|
||||
defaultDelayS: 10
|
||||
}
|
||||
defaultDelayS: 10,
|
||||
};
|
||||
|
||||
export default function healthRunner(
|
||||
name: string,
|
||||
@@ -52,15 +52,14 @@ export default function healthRunner(
|
||||
/** \
|
||||
* All values in seconds
|
||||
* defaults:
|
||||
* interval: 60s
|
||||
* timeout: 10s
|
||||
* delay: 10s
|
||||
*/
|
||||
create(effects: Types.Effects, {
|
||||
interval = 60,
|
||||
timeout = 10,
|
||||
delay = 10,
|
||||
} = {}) {
|
||||
* interval: 60s
|
||||
* timeout: 10s
|
||||
* delay: 10s
|
||||
*/
|
||||
create(
|
||||
effects: Types.Effects,
|
||||
{ interval = 60, timeout = 10, delay = 10 } = {}
|
||||
) {
|
||||
let running: any;
|
||||
function startFn() {
|
||||
clearInterval(running);
|
||||
|
||||
Reference in New Issue
Block a user