Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2149 add websocket tests for newheads #2169

Closed
wants to merge 8 commits into from

Conversation

ebadiere
Copy link
Collaborator

@ebadiere ebadiere commented Mar 4, 2024

Added websocket test for block content, fixed the JSON response and the design document.

Related issue(s): #2117

Fixes #

Signed-off-by: ebadiere <ebadiere@gmail.com>
…tance to false.

Signed-off-by: ebadiere <ebadiere@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
…tation.

Signed-off-by: ebadiere <ebadiere@gmail.com>
@ebadiere ebadiere self-assigned this Mar 4, 2024
@ebadiere ebadiere added the enhancement New feature or request label Mar 4, 2024
@ebadiere ebadiere added this to the 0.43.0 milestone Mar 4, 2024
Copy link

github-actions bot commented Mar 4, 2024

Tests

    1 files    35 suites   3s ⏱️
194 tests 193 ✔️ 1 💤 0
197 runs  196 ✔️ 1 💤 0

Results for commit 2d43072.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.15%. Comparing base (5a850ac) to head (58dd2e8).

❗ Current head 58dd2e8 differs from pull request most recent head ae12d3a. Consider uploading reports for the commit ae12d3a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2169   +/-   ##
=======================================
  Coverage   75.15%   75.15%           
=======================================
  Files          13       13           
  Lines         644      644           
  Branches      118      118           
=======================================
  Hits          484      484           
  Misses        115      115           
  Partials       45       45           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Mar 4, 2024

Acceptance Tests

  14 files  150 suites   14m 30s ⏱️
368 tests 363 ✔️ 4 💤 1
388 runs  381 ✔️ 4 💤 3

Results for commit 2d43072.

♻️ This comment has been updated with latest results.

Signed-off-by: ebadiere <ebadiere@gmail.com>
Signed-off-by: ebadiere <ebadiere@gmail.com>
expect(response.params).to.have.property('subscription');
}

if (responseCounter > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear this will mean the test will only ever confirm 2 responses.
The 1st to get the subscription ID and the 2nd to get the 1st block. You'll never confirm more than 1 blocks details.

You should definitely be testing for 0,1 and n numbers of blocks cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a subscription so I need to limit the number of responses I test and focus on the content of those responses.

@AlfredoG87 AlfredoG87 modified the milestones: 0.43.0, 0.45.0 Mar 19, 2024
@ebadiere ebadiere closed this Mar 21, 2024
@ebadiere ebadiere reopened this Mar 21, 2024
@ebadiere
Copy link
Collaborator Author

Addressed in PR #2225

@ebadiere ebadiere closed this Mar 21, 2024
@ebadiere ebadiere deleted the 2149-add-websocket-tests-for-newheads branch March 21, 2024 14:24
Copy link

sonarcloud bot commented Mar 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants