-
Notifications
You must be signed in to change notification settings - Fork 244
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
Problem: no integration test for websocket rpc endpoint #370
Conversation
Codecov Report
@@ Coverage Diff @@
## main #370 +/- ##
===========================================
+ Coverage 21.51% 41.06% +19.54%
===========================================
Files 27 30 +3
Lines 1729 1505 -224
===========================================
+ Hits 372 618 +246
+ Misses 1324 841 -483
- Partials 33 46 +13
|
b9114c5
to
f664407
Compare
Closes: crypto-org-chain#364 Solution: - add cronos-ws provider to run exiting test cases on websocket endpoint - add websocket subscription test cases - update ethermint to fix websocket bugs
@@ -164,7 +164,7 @@ replace ( | |||
// See https://github.com/tecbot/gorocksdb/pull/216 | |||
github.com/tecbot/gorocksdb => github.com/cosmos/gorocksdb v1.1.1 | |||
|
|||
github.com/tharsis/ethermint => github.com/crypto-org-chain/ethermint v0.10.0-alpha1-cronos-6 | |||
github.com/tharsis/ethermint => github.com/crypto-org-chain/ethermint v0.10.0-alpha1-cronos-6.0.20220301081024-4ec8b052c769 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -30,7 +30,6 @@ | |||
def test_basic(cluster): | |||
w3 = cluster.w3 | |||
assert w3.eth.chain_id == 777 | |||
assert w3.eth.get_balance(ADDRS["community"]) == 10000000000000000000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it only works if this is the very first test case to run, but it's not guaranteed.
@@ -47,7 +47,7 @@ def geth(tmp_path_factory): | |||
yield from setup_geth(path, 8545) | |||
|
|||
|
|||
@pytest.fixture(scope="session", params=["cronos", "geth"]) | |||
@pytest.fixture(scope="session", params=["cronos", "geth", "cronos-ws"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the test cases which use the cluster
fixture will be run an extra time against Cronos WebSocket endpoint.
…to-org-chain#370) Solution: - backport ethermint fix. - backport websockets integration tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…hain#370) * Problem: no integration test for websocket rpc endpoint Closes: crypto-org-chain#364 Solution: - add cronos-ws provider to run exiting test cases on websocket endpoint - add websocket subscription test cases - update ethermint to fix websocket bugs * fix python linter * changelog * fix python linter
…hain#370) * Problem: no integration test for websocket rpc endpoint Closes: crypto-org-chain#364 Solution: - add cronos-ws provider to run exiting test cases on websocket endpoint - add websocket subscription test cases - update ethermint to fix websocket bugs * fix python linter * changelog * fix python linter
#373) * Problem: websocket push duplicated messages to client (backport: #370) Solution: - backport ethermint fix. - backport websockets integration tests. * changelog * Update CHANGELOG.md * gomod2nix * Problem: no integration test for websocket rpc endpoint (#370) * Problem: no integration test for websocket rpc endpoint Closes: #364 Solution: - add cronos-ws provider to run exiting test cases on websocket endpoint - add websocket subscription test cases - update ethermint to fix websocket bugs * fix python linter * changelog * fix python linter * use a tag in ethermint repo
Closes: #364
Solution:
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)