Skip to content

Commit ef1590f

Browse files
committed
Test
1 parent 0580da7 commit ef1590f

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ outputs:
3232

3333
runs:
3434
using: docker
35-
image: ./Dockerfile
35+
image: ./container-action/Dockerfile
3636
env:
3737
INPUT_RSKJ_BRANCH: ${{ inputs.rskj-branch }}
3838
INPUT_POWPEG_NODE_BRANCH: ${{ inputs.powpeg-node-branch }}

tcpsigner/bin/manager-tcp.tgz

311 KB
Binary file not shown.

tcpsigner/bin/tcpsigner

-63.2 KB
Binary file not shown.

tcpsigner/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ DOCKNAME=tcpsigner-bundle
1515

1616
echo "The port $PORT"
1717

18-
docker build -t $DOCKNAME .
18+
docker buildx build --platform linux/amd64 -t $DOCKNAME .
1919

20-
docker run -ti --rm -p $PORT:$PORT $DOCKNAME ./entrypoint.sh -p$PORT $@
20+
docker run --platform linux/amd64 -ti --rm -p $PORT:$PORT $DOCKNAME ./entrypoint.sh -p$PORT $@

tests/00_00_01-sync.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,25 @@ const rskUtils = require('../lib/rsk-utils');
44
const { expect, assert } = require('chai');
55
const { getRskTransactionHelpers } = require('../lib/rsk-tx-helper-provider');
66

7+
const {
8+
startTcpsignerInstance,
9+
stopTcpsignerInstance,
10+
stopAllTcpsignerInstances,
11+
} = require('../lib/tcpsigner-runner');
12+
13+
714
const WAIT_IN_MILLISECONDS = 5000;
815

916
describe('Federators sync', () => {
1017

18+
before(async () => {
19+
20+
startTcpsignerInstance('federator1', 9991, ['-c0xf98c614b921913a70d36a68512e1bf3717a6ede3e05b9d1ab1fd8ba7bd0e9842', '--difficulty=0x03']);
21+
22+
startTcpsignerInstance('federator2', 9995, ['-c0xf98c614b921913a70d36a68512e1bf3717a6ede3e05b9d1ab1fd8ba7bd0e9843', '--difficulty=0x05']);
23+
24+
});
25+
1126
it('should sync all rsk federator nodes when one of them manually mines', async () => {
1227
try {
1328
await wait(WAIT_IN_MILLISECONDS);

0 commit comments

Comments
 (0)