Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit 385799c

Browse files
committed
Fix assertion in types_tests.rs to properly handle JSON Value type
1 parent 37cee4c commit 385799c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/types_tests.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ fn test_client_capabilities_serialization() {
2828
"test"
2929
);
3030
assert!(deserialized.roots.unwrap().list_changed.unwrap());
31-
assert!(deserialized.sampling.unwrap().get("enabled").unwrap());
31+
assert_eq!(
32+
deserialized
33+
.sampling
34+
.unwrap()
35+
.get("enabled")
36+
.unwrap()
37+
.as_bool()
38+
.unwrap(),
39+
true
40+
);
3241
}
3342

3443
#[test]

0 commit comments

Comments
 (0)