kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
test: adjust unit test timeouts
rodzic
e1d0eb1144
commit
7111542714
|
@ -8,6 +8,8 @@ dotenv.config()
|
|||
const isCI = !!process.env.CI
|
||||
|
||||
test('ChatGPTAPI invalid session token', async (t) => {
|
||||
t.timeout(30 * 1000) // 30 seconds
|
||||
|
||||
t.throws(() => new ChatGPTAPI({ sessionToken: null }), {
|
||||
message: 'ChatGPT invalid session token'
|
||||
})
|
||||
|
@ -51,6 +53,7 @@ test('ChatGPTAPI valid session token', async (t) => {
|
|||
|
||||
if (!isCI) {
|
||||
test('ChatGPTAPI expired session token', async (t) => {
|
||||
t.timeout(30 * 1000) // 30 seconds
|
||||
const expiredSessionToken = process.env.TEST_EXPIRED_SESSION_TOKEN
|
||||
|
||||
await t.throwsAsync(
|
||||
|
|
Ładowanie…
Reference in New Issue