Browse Source

test(core): Tweak flaky mysql e2e test

Michael Bromley 5 years ago
parent
commit
92b6e64aec

+ 1 - 1
packages/core/e2e/fixtures/test-plugins/transaction-test-plugin.ts

@@ -146,7 +146,7 @@ export class TransactionTestPlugin implements OnApplicationBootstrap {
             if (administrator.emailAddress === TRIGGER_EMAIL) {
                 administrator.lastName = 'modified';
                 try {
-                    await new Promise(resolve => setTimeout(resolve, 1));
+                    await new Promise(resolve => setTimeout(resolve, 50));
                     await this.connection.getRepository(ctx, Administrator).save(administrator);
                 } catch (e) {
                     TransactionTestPlugin.errorHandler(e);