Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Mar 19, 2024
1 parent 0418416 commit be4c8bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cma-client-node/__tests__/upload.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { generateNewCmaClient } from '../../../jest-helpers/generateNewCmaClient';
import { generateId } from '../../cma-client/src';
import { LogLevel } from '../src';

describe('upload', () => {
it.concurrent('upload local file', async () => {
Expand All @@ -22,6 +21,8 @@ describe('upload', () => {

expect(upload.path.endsWith('dato.png')).toBeTruthy();

await new Promise((resolve) => setTimeout(resolve, 2000));

const secondUpload = await client.uploads.createFromUrl({
url: 'https://www.datocms-assets.com/205/1525789775-dato.png?w=16',
skipCreationIfAlreadyExists: true,
Expand Down

0 comments on commit be4c8bc

Please sign in to comment.