File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,21 @@ describe('fetchFromProvider', () => {
57
57
vi . unstubAllGlobals ( )
58
58
} )
59
59
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
+ )
71
75
72
76
it ( 'should throw a formatted error when an error is returned from the RPC' , async ( ) => {
73
77
vi . stubGlobal ( 'fetch' , async ( _url : string , _req : any ) => {
You can’t perform that action at this time.
0 commit comments