Skip to content

Commit

Permalink
rollback test
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqiang90 committed Jan 18, 2024
1 parent 0d6acfb commit 343985d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/node/src/stellar/api.stellar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import { EventEmitter2 } from 'eventemitter2';
import { StellarApi } from './api.stellar';
import { SorobanServer } from './soroban.server';

// const HTTP_ENDPOINT = 'https://horizon-futurenet.stellar.org';
// const SOROBAN_ENDPOINT = 'https://rpc-futurenet.stellar.org';

const HTTP_ENDPOINT = 'https://horizon.phoenix-hub.io';
const SOROBAN_ENDPOINT = 'https://soroban-testnet.stellar.org';
const HTTP_ENDPOINT = 'https://horizon-futurenet.stellar.org';
const SOROBAN_ENDPOINT = 'https://rpc-futurenet.stellar.org';

jest.setTimeout(60000);

Expand Down Expand Up @@ -46,8 +43,7 @@ describe('StellarApi', () => {
});

it('should fetch block', async () => {
// const latestHeight = await stellarApi.getFinalizedBlockHeight();
const latestHeight = 364548;
const latestHeight = await stellarApi.getFinalizedBlockHeight();
const block = (await stellarApi.fetchBlocks([latestHeight]))[0];
expect(block.block.sequence).toEqual(latestHeight);
});
Expand Down

0 comments on commit 343985d

Please sign in to comment.