Skip to content

Commit

Permalink
[fix] Fix Linux StatelessNet Github CI (#10731)
Browse files Browse the repository at this point in the history
Runtime config check related tests are not supposed to run on nightly
and statelessnet.

Originally broken in #10703
  • Loading branch information
Shreyan Gupta authored Mar 8, 2024
1 parent dfda6d2 commit ee1a31d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions core/parameters/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ nightly = [
nightly_protocol = [
"near-primitives-core/nightly_protocol",
]
statelessnet_protocol = [
"near-primitives-core/statelessnet_protocol",
]
calimero_zero_storage = []
4 changes: 2 additions & 2 deletions core/parameters/src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,12 @@ impl From<ExtCostsConfigView> for crate::ExtCostsConfig {
}

#[cfg(test)]
#[cfg(not(feature = "nightly"))]
#[cfg(not(feature = "statelessnet_protocol"))]
mod tests {
/// The JSON representation used in RPC responses must not remove or rename
/// fields, only adding fields is allowed or we risk breaking clients.
#[test]
#[cfg_attr(feature = "nightly", ignore)]
#[cfg_attr(feature = "statelessnet_protocol", ignore)]
fn test_runtime_config_view() {
use crate::view::RuntimeConfigView;
use crate::RuntimeConfig;
Expand Down

0 comments on commit ee1a31d

Please sign in to comment.