Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

fix: repair web3 connection tests by making fewer assumptions about the existence of particular blocks #23921

Merged

Conversation

steveluscher
Copy link
Contributor

@steveluscher steveluscher commented Mar 24, 2022

In short, there was a change to the local test validator that made blocks 0 and 1 – in particular – inaccessible (see #23853). Our web3.js tests, on the other hand, presumed a lot about the presence of those particular blocks.

In this PR, we do one of two things to those tests. Either we eliminate the presumption that a block related to a particular numbered slot exists if it doesn't really matter what that number is, or we handle the absence of such a block if we're truly making assertions about a particular blocking in a particular slot.

This PR supecedes #23789.

Fixes #23615 (partially).

@mergify mergify bot added the community Community contribution label Mar 24, 2022
@mergify mergify bot requested a review from a team March 24, 2022 23:18
@steveluscher steveluscher requested review from joncinque and jordaaash and removed request for a team March 24, 2022 23:18
@mergify mergify bot requested a review from a team March 24, 2022 23:18
@codecov
Copy link

codecov bot commented Mar 24, 2022

Codecov Report

Merging #23921 (aca4e35) into master (2da4e3e) will decrease coverage by 11.7%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #23921       +/-   ##
===========================================
- Coverage    81.8%    70.0%    -11.8%     
===========================================
  Files         581       36      -545     
  Lines      158312     2217   -156095     
  Branches        0      311      +311     
===========================================
- Hits       129518     1553   -127965     
+ Misses      28794      557    -28237     
- Partials        0      107      +107     

@steveluscher steveluscher force-pushed the early-blocks-cant-live-with-em-cant-live-without-em branch from 5b6c18c to aca4e35 Compare March 25, 2022 05:10
@steveluscher steveluscher merged commit 412d9be into master Mar 25, 2022
@steveluscher steveluscher deleted the early-blocks-cant-live-with-em-cant-live-without-em branch March 25, 2022 05:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

web3.js: CI tests failing
1 participant