"lib/ssh:/git@developer.sourcefind.cn:2222/OpenDAS/dynamo.git" did not exist on "5b6624bda69a9dc5224ee9c10f540d00892b33aa"
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 { ...@@ -455,6 +455,8 @@ mod tests {
/// Test decoding of a message with checksum mismatch. /// Test decoding of a message with checksum mismatch.
#[test] #[test]
// Checksum only computed in debug mode, so only test in debug mode.
#[cfg(debug_assertions)]
fn test_checksum_mismatch() { fn test_checksum_mismatch() {
// Create a message // Create a message
let header_data = Bytes::from("header data"); let header_data = Bytes::from("header data");
...@@ -646,6 +648,8 @@ mod tests { ...@@ -646,6 +648,8 @@ mod tests {
/// Test handling of corrupted data in a stream /// Test handling of corrupted data in a stream
#[tokio::test] #[tokio::test]
// Checksum only computed in debug mode, so only test in debug mode.
#[cfg(debug_assertions)]
async fn test_streaming_corrupted_data() { async fn test_streaming_corrupted_data() {
// Create messages // Create messages
let header_data = Bytes::from("header data"); 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