Skip to content

Commit 0f99796

Browse files
committed
common: skip tests that make rpc calls
1 parent 62e340b commit 0f99796

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

packages/indexer-common/src/allocations/__tests__/tap-pagination.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ const setup = () => {
175175
}
176176
}
177177

178-
describe('TAP Pagination', () => {
178+
// Skipped because it hits real RPC providers and uses up the API key.
179+
// Skipping it works around this issue for now but we should turn it back on once we have a better solution.
180+
describe.skip('TAP Pagination', () => {
179181
beforeAll(setup, timeout)
180182
test(
181183
'test `getAllocationsfromAllocationIds` pagination',

packages/indexer-common/src/allocations/__tests__/tap.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ describe('TAP', () => {
505505
timeout,
506506
)
507507

508-
test('test `submitRAVs` with escrow account lower on balance', async () => {
508+
// Skipped until we can run with local-network in CI
509+
test.skip('test `submitRAVs` with escrow account lower on balance', async () => {
509510
// mock redeemRav to not call the blockchain
510511
const redeemRavFunc = jest
511512
.spyOn(tapCollector, 'redeemRav')

packages/indexer-common/src/allocations/__tests__/validate-queries.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ const setup = async () => {
5757
}
5858

5959
jest.spyOn(TapCollector.prototype, 'startRAVProcessing').mockImplementation()
60-
describe('Validate TAP queries', () => {
60+
61+
// Skipped because this hits real RPC endpoints.
62+
// This test should be re-enabled when we have a test environment that this can hit instead.
63+
describe.skip('Validate TAP queries', () => {
6164
beforeAll(setup, timeout)
6265

6366
test(

packages/indexer-common/src/indexer-management/__tests__/allocations.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ const teardownAll = async () => {
9797
await sequelize.drop({})
9898
}
9999

100-
describe('Allocation Manager', () => {
100+
// These tests are skipped because they hit real RPC providers and use up the API key.
101+
// Skipping them works around this issue for now but we should turn them back on once we have a better solution.
102+
describe.skip('Allocation Manager', () => {
101103
beforeAll(setup)
102104
beforeEach(setupEach)
103105
afterEach(teardownEach)
@@ -126,7 +128,7 @@ describe('Allocation Manager', () => {
126128
// @ts-ignore: Mocking the Action type for this test
127129
const actions = [queuedAllocateAction, unallocateAction, reallocateAction] as Action[]
128130

129-
test.skip('stakeUsageSummary() correctly calculates token balances for array of actions', async () => {
131+
test('stakeUsageSummary() correctly calculates token balances for array of actions', async () => {
130132
const balances = await Promise.all(
131133
actions.map((action: Action) => allocationManager.stakeUsageSummary(action)),
132134
)

packages/indexer-common/src/indexer-management/__tests__/helpers.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ describe.skip('Monitor: local', () => {
348348
})
349349
})
350350

351-
describe('Monitor: CI', () => {
351+
// Skipped until we can run on a local-network based stack.
352+
describe.skip('Monitor: CI', () => {
352353
beforeAll(setupMonitor)
353354

354355
test('Fetch subgraphs', async () => {

packages/indexer-common/src/indexer-management/__tests__/resolvers/actions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ const teardownAll = async () => {
224224
await sequelize.drop({})
225225
}
226226

227-
describe('Actions', () => {
227+
// Skipped until we can run on local-network based stack.
228+
describe.skip('Actions', () => {
228229
jest.setTimeout(60_000)
229230
beforeAll(setup)
230231
beforeEach(setupEach)

0 commit comments

Comments
 (0)