Skip to content

Commit

Permalink
Increase allowed delay for TiDB
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov committed Jun 6, 2024
1 parent 1eb6406 commit 5b29cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/tests/tidb-serverless.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2729,7 +2729,7 @@ test('test $onUpdateFn and $onUpdate works as $default', async () => {
{ name: 'Jack', id: 3, updateCounter: 1, uppercaseName: 'JACK', alwaysNull: null },
{ name: 'Jill', id: 4, updateCounter: 1, uppercaseName: 'JILL', alwaysNull: null },
]);
const msDelay = 250;
const msDelay = 2000;

for (const eachUser of justDates) {
expect(eachUser.updatedAt!.valueOf() > Date.now() - msDelay).toEqual(true);
Expand Down Expand Up @@ -2773,7 +2773,7 @@ test('test $onUpdateFn and $onUpdate works updating', async () => {
{ name: 'Jack', id: 3, updateCounter: 1, uppercaseName: 'JACK', alwaysNull: null },
{ name: 'Jill', id: 4, updateCounter: 1, uppercaseName: 'JILL', alwaysNull: null },
]);
const msDelay = 250;
const msDelay = 2000;

expect(initial[0]?.updatedAt?.valueOf() !== justDates[0]?.updatedAt?.valueOf()).toEqual(true);

Expand Down

0 comments on commit 5b29cb4

Please sign in to comment.