File tree 2 files changed +20
-1
lines changed
tests/test-http-client-transport
src/test/java/org/eclipse/jetty/http/client 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<properties >
15
15
<bundle-symbolic-name >${project.groupId} .client.http</bundle-symbolic-name >
16
+ <h3 .test.enabled>false</h3 .test.enabled>
16
17
</properties >
17
18
18
19
<build >
20
+ <pluginManagement >
21
+ <plugins >
22
+ <plugin >
23
+ <groupId >org.apache.maven.plugins</groupId >
24
+ <artifactId >maven-surefire-plugin</artifactId >
25
+ <configuration >
26
+ <systemPropertyVariables >
27
+ <org .eclipse.jetty.http.client.TransportProvider.H3.enable>${h3.test.enabled} </org .eclipse.jetty.http.client.TransportProvider.H3.enable>
28
+ </systemPropertyVariables >
29
+ </configuration >
30
+ </plugin >
31
+ </plugins >
32
+ </pluginManagement >
19
33
<plugins >
20
34
<plugin >
21
35
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 14
14
package org .eclipse .jetty .http .client ;
15
15
16
16
import java .util .Arrays ;
17
+ import java .util .EnumSet ;
17
18
import java .util .stream .Stream ;
18
19
19
20
import org .eclipse .jetty .util .StringUtil ;
@@ -30,7 +31,11 @@ public static Stream<Transport> getActiveTransports()
30
31
if (!StringUtil .isBlank (transports ))
31
32
return Arrays .stream (transports .split ("\\ s*,\\ s*" )).map (Transport ::valueOf );
32
33
33
- return Arrays .stream (Transport .values ());
34
+ EnumSet <Transport > ts = EnumSet .allOf (Transport .class );
35
+ // Disable H3 tests unless explicitly enabled with a system property.
36
+ if (!Boolean .getBoolean (Transport .class .getName () + ".H3.enable" ))
37
+ ts .remove (Transport .H3 );
38
+ return ts .stream ();
34
39
}
35
40
36
41
@ Override
You can’t perform that action at this time.
0 commit comments