Skip to content

Commit

Permalink
test: improve CI environment handling and mocking
Browse files Browse the repository at this point in the history
Co-Authored-By: Nico Krause <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and silkroadnomad committed Jan 18, 2025
1 parent ac12674 commit 0702857
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relay/tests/relay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import { DoichainRPC } from '../src/doichainRPC.js';
import { privateKeyFromProtobuf } from '@libp2p/crypto/keys';
import { peerIdFromPrivateKey } from '@libp2p/peer-id';
import { formatFileSize } from '../src/utils.js';
import { connectElectrum } from 'doi-js/connectElectrum';
import { getNameOpUTXOsOfTxHash } from 'doi-js/getNameOpUTXOsOfTxHash';
import { nameDoi } from 'doi-js/nameDoi';
import { getAddressTxs } from 'doi-js/getAddressTxs';

// Load environment variables
dotenv.config();
Expand All @@ -47,7 +51,7 @@ describe('Doichain Relay Pinning Service Test', function () {
const messages = [];
before(async function () {
this.timeout(100000);

// Skip tests if required environment variables are not set
if (!process.env.RELAY_PRIVATE_KEY) {
console.log('⚠️ RELAY_PRIVATE_KEY not set, skipping tests');
Expand Down

0 comments on commit 0702857

Please sign in to comment.