ci: fix benchmarks (#2953)

This commit is contained in:
ITOH
2023-04-02 23:06:55 +02:00
committed by GitHub
parent da74ea7e55
commit 0f41cd302e
4 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import { enableCachePlugin } from '../plugins/mod.ts.js'
const results = await memoryBenchmarks(() =>
enableCachePlugin(
createBot({
token: ' ',
applicationId: 1n,
botId: 0n,
}),
),

View File

@@ -21,7 +21,7 @@ await memoryBenchmark(
() =>
enableCachePlugin(
createBot({
token: ' ',
applicationId: 1n,
events: {},
}),
),

View File

@@ -1,7 +1,7 @@
import { createRestManager } from '@discordeno/rest'
import { suite } from '../benchmarkSuite.js'
const rest = createRestManager({ token: ' ' })
const rest = createRestManager({ applicationId: 1n })
suite.add(`rest.simplifyUrl`, () => {
rest.simplifyUrl('/messages/555555555555555555', 'PUT')

View File

@@ -15,7 +15,7 @@ const createGatewayManagerWithPort = (port: number) =>
maxConcurrency: 1,
},
},
token: ' ',
applicationId: 1n,
url: `ws://localhost:${port}`,
intents: Intents.Guilds,
events: {},