Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore(tests): update docker compose env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Nov 28, 2023
1 parent b9875c6 commit 44fa04b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ services:
environment:
HOST: arns-service
PORT: 3000
GATEWAY_HOST: arlocal
GATEWAY_PORT: 1984
GATEWAY_PROTOCOL: http
GATEWAY_HOST: ${GATEWAY_HOST:-arlocal}
GATEWAY_PORT: ${GATEWAY_PORT:-1984}
GATEWAY_PROTOCOL: ${GATEWAY_PROTOCOL:-http}
depends_on:
- arlocal
- arns-service
8 changes: 3 additions & 5 deletions tests/integration/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,19 @@ describe('Integration tests', () => {
const exampleSortKey = 'example-sort-key';

const { status } = await axios.get(
`/v1/contract/${id}/interactions?blockHeight=${validBlockHeight}&sortKey=${exampleSortKey}`,
`/v1/contract/${id}?blockHeight=${validBlockHeight}&sortKey=${exampleSortKey}`,
);
expect(status).to.equal(400);
});

it('should return contract state evaluated up to a given block height query param', async () => {
// block height before the interactions were created
// block height before other interactions
const blockHeight = 1;

const { status, data } = await axios.get(
`/v1/contract/${id}/interactions?blockHeight=${blockHeight}`,
`/v1/contract/${id}?blockHeight=${blockHeight}`,
);
const { contractTxId, state, evaluationOptions, sortKey } = data;
expect(status).to.equal(200);
expect(data).not.to.be.undefined;
expect(contractTxId).to.equal(id);
expect(evaluationOptions).not.to.be.undefined;
expect(state).not.to.be.undefined;
Expand Down

0 comments on commit 44fa04b

Please sign in to comment.