Browse Source

fix: create test user with a delay

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
07f53787d7
  1. 5
      packages/nocodb-nest/src/run/testDocker.ts

5
packages/nocodb-nest/src/run/testDocker.ts

@ -21,10 +21,9 @@ server.set('view engine', 'ejs');
process.env[`DEBUG`] = 'xc*';
(async () => {
const httpServer = server.listen(process.env.PORT || 8080, async () => {
await nocobuild(server);
const httpServer = server.listen(process.env.PORT || 8080, async () => {
await new Promise((resolve) => setTimeout(resolve, 2000)
if (!(await User.getByEmail('user@nocodb.com'))) {
const response = await axios.post(
`http://localhost:${process.env.PORT || 8080}/api/v1/auth/user/signup`,

Loading…
Cancel
Save