Unverified Commit 05913af5 authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

fix: Skip checksum tests in release mode since they're not computed (#2669)

parent 92151e3e
......@@ -455,6 +455,8 @@ mod tests {
/// Test decoding of a message with checksum mismatch.
#[test]
// Checksum only computed in debug mode, so only test in debug mode.
#[cfg(debug_assertions)]
fn test_checksum_mismatch() {
// Create a message
let header_data = Bytes::from("header data");
......@@ -646,6 +648,8 @@ mod tests {
/// Test handling of corrupted data in a stream
#[tokio::test]
// Checksum only computed in debug mode, so only test in debug mode.
#[cfg(debug_assertions)]
async fn test_streaming_corrupted_data() {
// Create messages
let header_data = Bytes::from("header data");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment