Skip to content

Commit

Permalink
Check docker in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Apr 25, 2024
1 parent 8058a62 commit e015583
Showing 1 changed file with 11 additions and 0 deletions.
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

0 comments on commit e015583

Please sign in to comment.