Skip to content

Commit 42a406e

Browse files
committed
chore: increase another timeout
1 parent 32ab0a5 commit 42a406e

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

packages/util/test/provider.spec.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,21 @@ describe('fetchFromProvider', () => {
5757
vi.unstubAllGlobals()
5858
})
5959

60-
it('should work', async () => {
61-
try {
62-
await fetchFromProvider(providerUrl, {
63-
method: 'eth_getBalance',
64-
params: ['0xabcd'],
65-
})
66-
assert.fail('should throw')
67-
} catch (err: any) {
68-
assert.isTrue(err.message.includes('fetch'), 'tried to fetch and failed')
69-
}
70-
})
60+
it(
61+
'should work',
62+
async () => {
63+
try {
64+
await fetchFromProvider(providerUrl, {
65+
method: 'eth_getBalance',
66+
params: ['0xabcd'],
67+
})
68+
assert.fail('should throw')
69+
} catch (err: any) {
70+
assert.isTrue(err.message.includes('fetch'), 'tried to fetch and failed')
71+
}
72+
},
73+
{ timeout: 15000 },
74+
)
7175

7276
it('should throw a formatted error when an error is returned from the RPC', async () => {
7377
vi.stubGlobal('fetch', async (_url: string, _req: any) => {

0 commit comments

Comments
 (0)