Skip to content

Commit

Permalink
chore: excluded unstable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abilevych committed Jan 18, 2024
1 parent ee53339 commit 806dddb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/integration-tests/tests/api/batches.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import * as request from "supertest";

import { environment } from "../../src/config";
import { localConfig } from "../../src/config";
import { Helper } from "../../src/helper";

Expand All @@ -14,7 +11,7 @@ describe("Batches", () => {
//@id1513
it("Verify the response via /batches", async () => {
apiRoute = `/batches`;
response = await helper.retryAPIrequest(apiRoute, false);
response = await helper.retryAPIrequest(apiRoute);

expect(Array.isArray(response.body.items)).toStrictEqual(true);
expect(response.body.items.length).toBeGreaterThanOrEqual(1);
Expand All @@ -29,11 +26,13 @@ describe("Batches", () => {
expect(typeof response.body.links.last).toStrictEqual("string");
});

//@id1514
//@id1514 //unstable due to null issue with timestamp
xit("Verify the response via /batches/{batchNumber}", async () => {
const batches = await request(environment.blockExplorerAPI).get("/batches");
apiRoute = `/batches`;
const batches = await helper.retryAPIrequest(apiRoute);
const batchNumber = batches.body.items[0].number;
apiRoute = `/batches/${batchNumber}`;
apiRoute = apiRoute + `/${batchNumber}`;
response = await helper.retryAPIrequest(apiRoute);

expect(response.status).toBe(200);
expect(response.body.number).toStrictEqual(batchNumber);
Expand Down

0 comments on commit 806dddb

Please sign in to comment.