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

chore: misc. #247

Merged
merged 4 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions e2e/motoko/main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Text "mo:base/Text";
import Evm "mo:evm";

shared ({ caller = installer }) actor class Main() {

type TestCategory = { #staging; #production };

// (`subnet name`, `nodes in subnet`, `expected cycles for JSON-RPC call`)
Expand All @@ -29,9 +28,10 @@ shared ({ caller = installer }) actor class Main() {

// (`RPC service`, `method`)
let ignoredTests = [
(#EthMainnet(#BlockPi), "eth_sendRawTransaction"), // "Private transaction replacement (same nonce) with gas price change lower than 10% is not allowed within 30 sec from the previous transaction."
(#EthMainnet(#Llama), "eth_sendRawTransaction"), // Non-standard error message
(#ArbitrumOne(#Ankr), "eth_getLogs"), // Timeout expired
(#EthMainnet(#BlockPi), ?"eth_sendRawTransaction"), // "Private transaction replacement (same nonce) with gas price change lower than 10% is not allowed within 30 sec from the previous transaction."
(#EthMainnet(#Llama), ?"eth_sendRawTransaction"), // Non-standard error message
(#ArbitrumOne(#Ankr), ?"eth_getLogs"), // Timeout expired
(#BaseMainnet(#Llama), null), // No response (temporary issue)
];

func runTests(caller : Principal, category : TestCategory) : async () {
Expand Down Expand Up @@ -138,8 +138,11 @@ shared ({ caller = installer }) actor class Main() {
case (#Ok(_)) {};
case (#Err(err)) {
for ((ignoredService, ignoredMethod) in ignoredTests.vals()) {
if (service == ignoredService and method == ignoredMethod) {
Debug.print("Ignoring error from " # canisterType # " " # debug_show ignoredService # " " # ignoredMethod);
if (ignoredService == service and (ignoredMethod == null or ignoredMethod == ?method)) {
Debug.print("Ignoring error from " # canisterType # " " # debug_show ignoredService # " " # (switch ignoredMethod {
case null "*";
case (?method) method;
}));
return;
};
};
Expand Down
202 changes: 0 additions & 202 deletions providers.did

This file was deleted.