Skip to content

Commit

Permalink
Restored CSP tests and CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Dec 13, 2023
1 parent dce8661 commit 5308c42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ jobs:
echo "timed out waiting"
exit 1
- name: Wait until block times are stable
run: sleep 60

- name: Integration tests
run: yarn test:integration --ci --coverage --maxWorkers=2

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"ts-types": "tsc --emitDeclarationOnly --outDir dist",
"test": "yarn test:unit && yarn test:api && yarn test:census3 && yarn test:service && yarn test:integration",
"test:unit": "jest test/unit --verbose",
"test:integration": "yarn test:integration:account && yarn test:integration:election && yarn test:integration:other",
"test:integration": "yarn test:integration:account && yarn test:integration:csp && yarn test:integration:election && yarn test:integration:other",
"test:integration:account": "jest test/integration/account.test.ts",
"test:integration:csp": "jest test/integration/csp.test.ts",
"test:integration:election": "jest test/integration/election.test.ts",
Expand Down
4 changes: 2 additions & 2 deletions test/integration/csp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { clientParams, setFaucetURL } from './util/client.params';
// @ts-ignore
import { waitForElectionReady } from './util/client.utils';

const CSP_URL = process.env.BLINDCSP_URL ?? 'https://csp-stg.vocdoni.net/v1';
const CSP_PUBKEY = process.env.BLINDCSP_PUBKEY ?? '0299f6984fddd0fab09c364d18e2759d6b728e933fae848676b8bd9700549a1817';
const CSP_URL = process.env.BLINDCSP_URL ?? 'https://csp-dev-simplemath.vocdoni.net/v1';
const CSP_PUBKEY = process.env.BLINDCSP_PUBKEY ?? '025de8cb8de1005aa939c1403e37e1fa165ebc758da49cb37215c6237d01591104';

describe('CSP tests', () => {
it('should create an election with 4 participants and each of them should vote correctly', async () => {
Expand Down

0 comments on commit 5308c42

Please sign in to comment.