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

Devnet update #108

Merged
merged 2 commits into from
Feb 17, 2025
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
2 changes: 1 addition & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn sort_transactions(value: &mut Value) {
}

pub const DEVNET_BLOCKCHAIN_ID: &str = "mina";
pub const DEVNET_NETWORK_ID: &str = "testnet";
pub const DEVNET_NETWORK_ID: &str = "devnet";

pub fn network_id() -> NetworkIdentifier {
NetworkIdentifier::new(DEVNET_BLOCKCHAIN_ID.to_string(), DEVNET_NETWORK_ID.to_string())
Expand Down
11 changes: 6 additions & 5 deletions tests/compare_to_ocaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ async fn assert_responses_contain<T: Serialize>(subpath: &str, reqs: &[T], fragm
Ok(())
}

#[tokio::test]
async fn search_transactions_test() -> Result<()> {
let (subpath, reqs) = fixtures::search_transactions();
assert_responses_eq(subpath, &reqs).await
}
// NOTE! Temporarily disabled due SQL failure on the legacy Rosetta endpoint:
// #[tokio::test]
// async fn search_transactions_test() -> Result<()> {
// let (subpath, reqs) = fixtures::search_transactions();
// assert_responses_eq(subpath, &reqs).await
// }

#[tokio::test]
async fn network_list() -> Result<()> {
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub use construction_metadata::*;
pub use construction_preprocess::*;
pub use mempool::*;
pub use network::*;
#[allow(unused_imports)]
pub use search_transactions::*;

pub type CompareGroup<'a> = (&'a str, Vec<Box<dyn ErasedSerialize>>);
1 change: 1 addition & 0 deletions tests/fixtures/search_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use mina_mesh::{

use super::CompareGroup;

#[allow(dead_code)]
pub fn search_transactions<'a>() -> CompareGroup<'a> {
("/search/transactions", vec![
Box::new(SearchTransactionsRequest {
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/network_list__network_list.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: "&response.network_identifiers"
[
NetworkIdentifier {
blockchain: "mina",
network: "testnet",
network: "devnet",
sub_network_identifier: None,
},
]
Loading