Skip to content

Commit

Permalink
Fix remaining blackbox test issues (directus#22759)
Browse files Browse the repository at this point in the history
* Fix remaining blackbox test issues

* Temporary activation of blackbox tests (sqlite)

* Enable hanging-process reporter for now

* Revert "Enable hanging-process reporter for now"

This reverts commit ce490ba.

* Fix hanging by cleaning up sequential list

Also prevent this issue in future by logging invalid files in list

* Switch remaining tests to `getPort`

To get random, available ports

* Revert "Temporary activation of blackbox tests (sqlite)"

This reverts commit a8687a0.
  • Loading branch information
paescuj authored Jun 18, 2024
1 parent 9c73014 commit 53b3c1f
Show file tree
Hide file tree
Showing 18 changed files with 349 additions and 138 deletions.
238 changes: 234 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/blackbox/common/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function ClearCaches() {

// Assert
const response = await request(getUrl(vendor))
.post(`/utils/cache/clear`)
.post(`/utils/cache/clear?system`)
.set('Authorization', `Bearer ${USER.TESTS_FLOW.TOKEN}`);

const response2 = await request(getUrl(vendor))
Expand Down
2 changes: 1 addition & 1 deletion tests/blackbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typescript": "5.4.5",
"uuid": "9.0.1",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.5.3",
"vitest": "1.6.0",
"ws": "8.17.0"
}
}
Loading

0 comments on commit 53b3c1f

Please sign in to comment.