Skip to content

Commit cf375c7

Browse files
fix(utxo-staking): correct path name for fixtures
TICKET: WP-5599
1 parent 7149d02 commit cf375c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/utxo-staking/test/unit/babylon/bug71.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('btc-staking-ts bug #71', function () {
1010
let buf: Buffer;
1111
before('load half-signed transaction', async function () {
1212
const fixture = JSON.parse(
13-
await fs.promises.readFile(__dirname + '/../../../../test/fixtures/babylon/txTree.testnet.json', 'utf-8')
13+
await fs.promises.readFile(__dirname + '/../../fixtures/babylon/txTree.testnet.json', 'utf-8')
1414
);
1515
const base64 = fixture.slashingSignedBase64;
1616
assert(typeof base64 === 'string');

modules/utxo-staking/test/unit/babylon/undelegation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type BtcDelegation = t.TypeOf<typeof BtcDelegation>;
2828
async function getFixture(txid: string): Promise<BtcDelegation> {
2929
// As returned by https://babylon.nodes.guru/api#/Query/BTCDelegation
3030
const BtcDelegationResponse = t.type({ btc_delegation: BtcDelegation }, 'BtcDelegationResponse');
31-
const filename = __dirname + `/../../../../test/fixtures/babylon/rpc/btc_delegation/testnet.${txid}.json`;
31+
const filename = __dirname + `/../../fixtures/babylon/rpc/btc_delegation/testnet.${txid}.json`;
3232
const data = JSON.parse(await fs.readFile(filename, 'utf8'));
3333
const result = BtcDelegationResponse.decode(data);
3434
if (isLeft(result)) {

0 commit comments

Comments
 (0)