Skip to content

Commit

Permalink
Update ui tests runner to use new cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Feb 26, 2024
1 parent 2c4d19f commit 049a354
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/tests/_globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ export default async function globalSetup() {
]
: ["--devmode"];

edbServerProc = spawn(srvcmd, args, {
env: {...process.env, EDGEDB_DEBUG_HTTP_INJECT_CORS: "1"},
}) as ChildProcess;
edbServerProc = spawn(srvcmd, args) as ChildProcess;
edbServerProc.once("close", (code) => {
if (!edbServerAlive.done) {
edbServerAlive.setError(
Expand Down Expand Up @@ -146,6 +144,9 @@ export default async function globalSetup() {

try {
await testClient.execute(schemaScript);
await testClient.execute(
`configure current database set cors_allow_origins := {'*'}`
);
break;
} catch (err) {
if (!(err instanceof AccessError)) {
Expand Down

0 comments on commit 049a354

Please sign in to comment.