File: 1002_fence_tests.patch

package info (click to toggle)
rust-tonic 0.12.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,268 kB
  • sloc: sh: 122; makefile: 31
file content (15 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: add feature fences for tests
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2024-06-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tonic/src/service/interceptor.rs
+++ b/tonic/src/service/interceptor.rs
@@ -306,6 +306,7 @@
     }
 
     #[tokio::test]
+    #[cfg(feature = "transport")]
     async fn doesnt_change_http_method() {
         let svc = tower::service_fn(|request: http::Request<Empty<()>>| async move {
             assert_eq!(request.method(), http::Method::OPTIONS);