Skip to content

Commit

Permalink
Suppress simtest warnings (#17537)
Browse files Browse the repository at this point in the history
## Description 

simple cleanup to address simtest warnings.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
  • Loading branch information
halfprice authored May 7, 2024
1 parent 58d43d3 commit ef49d37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions consensus/core/src/authority_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ where

#[cfg(test)]
mod tests {
#![allow(non_snake_case)]

use std::{collections::BTreeSet, sync::Arc, time::Duration};

use async_trait::async_trait;
Expand Down
1 change: 1 addition & 0 deletions crates/sui-json-rpc-tests/tests/transaction_tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[cfg(not(msim))]
use std::str::FromStr;

use move_core_types::identifier::Identifier;
Expand Down
4 changes: 3 additions & 1 deletion crates/sui/tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
use std::collections::BTreeSet;
use std::io::Read;
use std::os::unix::prelude::FileExt;
use std::str::FromStr;
use std::{fmt::Write, fs::read_dir, path::PathBuf, str, thread, time::Duration};

#[cfg(not(msim))]
use std::str::FromStr;

use expect_test::expect;
use move_package::{lock_file::schema::ManagedPackage, BuildConfig as MoveBuildConfig};
use serde_json::json;
Expand Down

0 comments on commit ef49d37

Please sign in to comment.