Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Dec 21, 2023
1 parent 43623e7 commit d5a8184
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/jni_core/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,6 @@ macro_rules! cast_jvalue {
let obj = $value.l().expect("should be object");
unsafe { jni::objects::JByteArray::from_raw(obj.into_raw()) }
}};
({ String }, $value:expr) => {{
let obj = $value.l().expect("should be object");
jni::objects::JString::from(obj)
}};
({ $($class:tt)+ }, $value:expr) => {{
$value.l().expect("should be object")
}};
Expand Down Expand Up @@ -886,7 +882,7 @@ mod tests {
// This test shows the signature of all native methods
let expected = expect_test::expect![[r#"
[
tracingSlf4jEvent (Ljava/lang/String;ILjava/lang/String;)V,
tracingSlf4jEvent (Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V,
vnodeCount ()I,
iteratorNewHummock ([B)J,
iteratorNewStreamChunk (J)J,
Expand Down

0 comments on commit d5a8184

Please sign in to comment.