Skip to content

Commit 08daacd

Browse files
committed
removes unwanted incrfesed timeout interval from the beforeall and afterall hooks in the file tests\routes\api.users.me.boxes.$deviceId.spec.ts
1 parent 52c48d2 commit 08daacd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/routes/api.users.me.boxes.$deviceId.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const OTHER_TEST_USER = generateTestUserCredentials()
2626
describe('openSenseMap API Routes: /users', () => {
2727
describe('/me/boxes/:deviceId', () => {
2828
describe('GET', () => {
29-
// Removed async here - not needed on describe
3029
let jwt: string = ''
3130
let otherJwt: string = ''
3231
let deviceId: string = ''
@@ -52,7 +51,7 @@ describe('openSenseMap API Routes: /users', () => {
5251

5352
const device = await createDevice(BOX_TEST_USER_BOX, (user as User).id)
5453
deviceId = device.id
55-
}, 30000) // Increase timeout to 30 seconds
54+
})
5655

5756
it('should let users retrieve one of their boxes with all fields', async () => {
5857
// Act: Get single box
@@ -96,7 +95,7 @@ describe('openSenseMap API Routes: /users', () => {
9695
// delete the valid test user
9796
await deleteUserByEmail(BOX_TEST_USER.email)
9897
await deleteUserByEmail(OTHER_TEST_USER.email)
99-
}, 30000) // Increase timeout for cleanup too
98+
})
10099
})
101100
})
102101
})

0 commit comments

Comments
 (0)