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

test fix #87

Merged
merged 1 commit into from
Dec 6, 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
2 changes: 1 addition & 1 deletion p2p/tests/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn capabilities_contains() {

#[test]
fn default_capabilities() {
let x = Capabilities::default();
let x = Capabilities::new(true, false);

// Check that default capabilities is covered by UNKNOWN.
assert!(x.contains(Capabilities::UNKNOWN));
Expand Down
2 changes: 1 addition & 1 deletion p2p/tests/ser_deser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn test_type_enum() {

#[test]
fn test_capabilities() {
let expected = p2p::types::Capabilities::default();
let expected = p2p::types::Capabilities::new(true, false);

assert_eq!(
p2p::types::Capabilities::from_bits_truncate(0b_0000_0000 as u32),
Expand Down
Loading