This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
tests/IntegrationTests/Download Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ namespace GitHub.Unity
5
5
{
6
6
public static class ApplicationConfiguration
7
7
{
8
+ public const int DefaultWebTimeout = 3000 ;
9
+
8
10
static ApplicationConfiguration ( )
9
11
{
10
12
var executingAssembly = typeof ( ApplicationConfiguration ) . Assembly ;
@@ -13,20 +15,15 @@ static ApplicationConfiguration()
13
15
}
14
16
15
17
/// <summary>
16
- /// The currently executing assembly.
18
+ /// The currently executing assembly.
17
19
/// </summary>
18
- public static AssemblyName AssemblyName { get ; private set ; }
20
+ public static AssemblyName AssemblyName { get ; }
19
21
20
22
/// <summary>
21
- /// The product header used in the user agent.
23
+ /// The product header used in the user agent.
22
24
/// </summary>
23
25
public static ProductHeaderValue ProductHeader { get ; private set ; }
24
26
25
- private static int webTimeout = 3000 ;
26
- public static int WebTimeout
27
- {
28
- get { return webTimeout ; }
29
- set { webTimeout = value ; }
30
- }
27
+ public static int WebTimeout { get ; set ; } = DefaultWebTimeout ;
31
28
}
32
- }
29
+ }
Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ public override void TestFixtureSetUp()
24
24
base . TestFixtureSetUp ( ) ;
25
25
server = new TestWebServer . HttpServer ( ) ;
26
26
Task . Factory . StartNew ( server . Start ) ;
27
+ ApplicationConfiguration . WebTimeout = 20000 ;
27
28
}
28
29
29
30
public override void TestFixtureTearDown ( )
30
31
{
31
32
base . TestFixtureTearDown ( ) ;
32
33
server . Stop ( ) ;
34
+ ApplicationConfiguration . WebTimeout = ApplicationConfiguration . DefaultWebTimeout ;
33
35
}
34
36
35
37
[ Test ]
You can’t perform that action at this time.
0 commit comments