File: disable-test-missing-testdata.patch

package info (click to toggle)
rust-h2 0.3.13-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,280 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: h2/src/hpack/test/fixture.rs
===================================================================
--- h2.orig/src/hpack/test/fixture.rs
+++ h2/src/hpack/test/fixture.rs
@@ -1,4 +1,4 @@
-use crate::hpack::{Decoder, Encoder, Header};
+/*use crate::hpack::{Decoder, Encoder, Header};
 
 use bytes::BytesMut;
 use hex::FromHex;
@@ -11,7 +11,7 @@ use std::path::Path;
 use std::str;
 
 fn test_fixture(path: &Path) {
-    let mut file = File::open(path).unwrap();
+    let mut file = File::open(path).expect(format!("can't find file {}",path.display()).as_str());
     let mut data = String::new();
     file.read_to_string(&mut data).unwrap();
 
@@ -612,4 +612,4 @@ fixture_mod!(
         (story_30, "go-hpack/story_30.json");
         (story_31, "go-hpack/story_31.json");
     }
-);
+);*/