Skip to content

Commit

Permalink
fix: change queryWindow to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
andraz maier committed Dec 18, 2024
1 parent b20f98e commit 975026d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("/ConfirmedBlockHeightExists/mic", () => {
sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000",
requestBody: {
blockNumber: "6724543",
queryWindow: "100"
queryWindow: "400"
}
}
const response = await request(app.getHttpServer())
Expand All @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("/ConfirmedBlockHeightExists/prepareRequest", () => {
sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000",
requestBody: {
blockNumber: "6724543",
queryWindow: "100"
queryWindow: "400"
}
}
const response = await request(app.getHttpServer())
Expand All @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe("/ConfirmedBlockHeightExists/prepareResponse", () => {
sourceId: "0x74657374444f4745000000000000000000000000000000000000000000000000",
requestBody: {
blockNumber: "6724543",
queryWindow: "100"
queryWindow: "400"
}
}
const response = await request(app.getHttpServer())
Expand All @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('/ConfirmedBlockHeightExists/mic', () => {
sourceId:
'0x7465737458525000000000000000000000000000000000000000000000000000',
requestBody: {
blockNumber: '2883020',
queryWindow: '200',
blockNumber: '2882020',
queryWindow: '3639',
},
};
const response = await request(app.getHttpServer())
Expand All @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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 = {
Expand Down

0 comments on commit 975026d

Please sign in to comment.