From 975026d619848d0154d9396bd4e9ece5aafe99ef Mon Sep 17 00:00:00 2001 From: andraz maier Date: Wed, 18 Dec 2024 14:13:51 +0100 Subject: [PATCH] fix: change queryWindow to seconds --- .../confirmed_block_height_exists_mic.e2e-spec.ts | 3 +-- ...confirmed_block_height_exists_prepare_request.e2e-spec.ts | 3 +-- ...onfirmed_block_height_exists_prepare_response.e2e-spec.ts | 3 +-- .../confirmed_block_height_exists_mic.e2e-spec.ts | 5 ++--- ...confirmed_block_height_exists_prepare_request.e2e-spec.ts | 5 ++--- ...onfirmed_block_height_exists_prepare_response.e2e-spec.ts | 5 ++--- 6 files changed, 9 insertions(+), 15 deletions(-) diff --git a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts index aaa59ba..f2b5050 100644 --- a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts +++ b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts @@ -29,7 +29,7 @@ describe("/ConfirmedBlockHeightExists/mic", () => { sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000", requestBody: { blockNumber: "6724543", - queryWindow: "100" + queryWindow: "400" } } const response = await request(app.getHttpServer()) @@ -40,7 +40,6 @@ describe("/ConfirmedBlockHeightExists/mic", () => { .expect('Content-Type', /json/) expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 6724602 }); it("should get VALID status with queryWindow=0", async () => { const payload = { diff --git a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts index f29b303..1ead372 100644 --- a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts +++ b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts @@ -28,7 +28,7 @@ describe("/ConfirmedBlockHeightExists/prepareRequest", () => { sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000", requestBody: { blockNumber: "6724543", - queryWindow: "100" + queryWindow: "400" } } const response = await request(app.getHttpServer()) @@ -39,7 +39,6 @@ describe("/ConfirmedBlockHeightExists/prepareRequest", () => { .expect('Content-Type', /json/) expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 6724602 }); it("should get VALID status with queryWindow=0", async () => { const payload = { diff --git a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts index 9ffeba4..a35ca40 100644 --- a/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts +++ b/e2e_tests/doge/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts @@ -38,7 +38,7 @@ describe("/ConfirmedBlockHeightExists/prepareResponse", () => { sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000", requestBody: { blockNumber: "6724543", - queryWindow: "100" + queryWindow: "400" } } const response = await request(app.getHttpServer()) @@ -49,7 +49,6 @@ describe("/ConfirmedBlockHeightExists/prepareResponse", () => { .expect('Content-Type', /json/) expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 6724602 }); it("should get VALID status with queryWindow=0", async () => { const payload = { diff --git a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts index fc75d0b..d9e7535 100644 --- a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts +++ b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_mic.e2e-spec.ts @@ -31,8 +31,8 @@ describe('/ConfirmedBlockHeightExists/mic', () => { sourceId: '0x7465737458525000000000000000000000000000000000000000000000000000', requestBody: { - blockNumber: '2883020', - queryWindow: '200', + blockNumber: '2882020', + queryWindow: '3639', }, }; const response = await request(app.getHttpServer()) @@ -43,7 +43,6 @@ describe('/ConfirmedBlockHeightExists/mic', () => { .expect('Content-Type', /json/); expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 2883195 }); it('should get VALID status with queryWindow=0', async () => { const payload = { diff --git a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts index 8f25e3b..a7aed2f 100644 --- a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts +++ b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_request.e2e-spec.ts @@ -27,8 +27,8 @@ describe("/ConfirmedBlockHeightExists/prepareRequest", () => { attestationType: "0x436f6e6669726d6564426c6f636b486569676874457869737473000000000000", sourceId: "0x7465737458525000000000000000000000000000000000000000000000000000", requestBody: { - blockNumber: "2883020", - queryWindow: "200" + blockNumber: "2882020", + queryWindow: "3639" } } const response = await request(app.getHttpServer()) @@ -39,7 +39,6 @@ describe("/ConfirmedBlockHeightExists/prepareRequest", () => { .expect('Content-Type', /json/) expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 2883195 }); it("should get VALID status with queryWindow=0", async () => { const payload = { diff --git a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts index 2af5662..ce41fd4 100644 --- a/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts +++ b/e2e_tests/xrp/confirmed_block_height_exists/confirmed_block_height_exists_prepare_response.e2e-spec.ts @@ -37,8 +37,8 @@ describe("/ConfirmedBlockHeightExists/prepareResponse", () => { attestationType: "0x436f6e6669726d6564426c6f636b486569676874457869737473000000000000", sourceId: "0x7465737458525000000000000000000000000000000000000000000000000000", requestBody: { - blockNumber: "2883020", - queryWindow: "200" + blockNumber: "2882020", + queryWindow: "3639" } } const response = await request(app.getHttpServer()) @@ -49,7 +49,6 @@ describe("/ConfirmedBlockHeightExists/prepareResponse", () => { .expect('Content-Type', /json/) expect(response.body.status).to.be.equal('INDETERMINATE'); - // The last block in DB is 2883195 }); it("should get VALID status with queryWindow=0", async () => { const payload = {