Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check docker in pipeline #39

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/00_00_01-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ const rskUtils = require('../lib/rsk-utils');
const { expect, assert } = require('chai');
const { getRskTransactionHelpers } = require('../lib/rsk-tx-helper-provider');

const { promisify } = require('util');
const { exec } = require('child_process');

const execPromise = promisify(exec);

const WAIT_IN_MILLISECONDS = 5000;

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

it('should sync all rsk federator nodes when one of them manually mines', async () => {

const { stdout, stderr } = await execPromise('docker --version');

console.log('docker installation response: ', stdout);
console.log('docker installation response stderr: ', stderr);

try {
await wait(WAIT_IN_MILLISECONDS);
expect(Runners.hosts.federates.length).to.be.greaterThan(0, 'Federates array cannot be empty');
Expand Down
Loading