Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed May 5, 2023
1 parent 0f14406 commit 096602a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/port/controller/PackageVersionFileController/raw.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { strict as assert } from 'node:assert';
import { setTimeout } from 'node:timers/promises';
import { app, mock } from 'egg-mock/bootstrap';
import { TestUtil } from 'test/TestUtil';
import { calculateIntegrity } from 'app/common/PackageUtil';
Expand Down Expand Up @@ -143,6 +144,8 @@ describe('test/port/controller/PackageVersionFileController/raw.test.ts', () =>
.set('user-agent', publisher.ua)
.send(pkg);
assert.equal(res.status, 201);
// wait for sync event finish
await setTimeout(3000);
res = await app.httpRequest()
.get(`/${pkg.name}/1.0.0/files/`);
assert.equal(res.status, 200);
Expand Down

0 comments on commit 096602a

Please sign in to comment.