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

fix doctests run #2701

Merged
merged 1 commit into from
Mar 22, 2023
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: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ test:
cargo nextest run -p forest_db --no-default-features --features rocksdb
cargo nextest run -p forest_libp2p_bitswap --all-features
cargo check --tests --features slow_tests
# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16
cargo test --doc

test-slow:
cargo nextest run -p forest_message_pool --features slow_tests
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub mod json;
/// Usage:
/// ```
/// use forest_blocks::{BlockHeader, TipsetKeys, Ticket};
/// use fvm_shared::address::Address;
/// use forest_shim::address::Address;
/// use cid::Cid;
/// use cid::multihash::Code::Identity;
/// use num::BigInt;
Expand Down
2 changes: 1 addition & 1 deletion node/db/src/rolling/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
//! minutes. The same behaviour is observed during snapshot import as well.
//!
//! ### Sample mainnet log
//! ```
//! ```text
//! 2023-03-16T19:50:40.323860Z INFO forest_db::rolling::gc: Garbage collection started at epoch 2689660
//! 2023-03-16T22:27:36.484245Z INFO forest_db::rolling::gc: Garbage collection finished at epoch 2689660, took 9416s, reachable data size: 135.71GB
//! 2023-03-16T22:27:38.793717Z INFO forest_db::rolling::impls: Deleted database under /root/.local/share/forest/mainnet/paritydb/14d0f80992374fb8b20e3b1bd70d5d7b, size: 139.01GB
Expand Down
2 changes: 1 addition & 1 deletion utils/forest_utils/src/encoding/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub mod serde_byte_array {
///
/// # Example
/// ```
/// use forest_utils::blake2b_256;
/// use forest_utils::encoding::blake2b_256;
///
/// let ingest: Vec<u8> = vec![];
/// let hash = blake2b_256(&ingest);
Expand Down