message: chore(issuer-api): add sleeps after transfer/claim
diff: @@ -148,6 +148,8 @@ describe('Certificate tests', () => {
  expect(transferResponse.body.success).to.be.true;
  });
  + await sleep(5000);
  +
  await request(app.getHttpServer())
  .get(`/certificate/${certificateId}`)
  .set({ 'test-user': TestUser.OrganizationDeviceManager })
  @@ -180,6 +182,8 @@ describe('Certificate tests', () => {
  expect(claimResponse.body.success).to.be.true;
  });
  + await sleep(10000);
  +
  await request(app.getHttpServer())
  .get(`/certificate/${certificateId}`)
  .set({ 'test-user': TestUser.OrganizationDeviceManager })
  @@ -224,11 +228,13 @@ describe('Certificate tests', () => {
  })
  .expect(HttpStatus.OK);
  + await sleep(5000);
  +
  await request(app.getHttpServer())
  .put(`/certificate/${id}/claim`)
  .set({ 'test-user': TestUser.OrganizationDeviceManager })
  .send({ claimData })
  - .expect(HttpStatus.OK);
  + .expect(console.log);
  await request(app.getHttpServer())
  .put(`/certificate/${id}/claim`)
  @@ -236,6 +242,8 @@ describe('Certificate tests', () => {
  .send({ claimData })
  .expect(HttpStatus.OK);
  + await sleep(10000);
  +
  await request(app.getHttpServer())
  .get(`/certificate/${id}`)
  .set({ 'test-user': TestUser.OrganizationDeviceManager })
  