@@ -9,8 +9,8 @@ namespace Tests.ClientConcepts.ConnectionPooling.BuildingBlocks
9
9
public class DateTimeProviders
10
10
{
11
11
/**== Date time providers
12
- *
13
- * Not typically something you'll have to pass to the client but all calls to `System.DateTime.UtcNow`
12
+ *
13
+ * Not typically something you'll have to pass to the client but all calls to `System.DateTime.UtcNow`
14
14
* in the client have been abstracted by `IDateTimeProvider`. This allows us to unit test timeouts and cluster failover
15
15
* without being bound to wall clock time as calculated by using `System.DateTime.UtcNow` directly.
16
16
*/
@@ -29,8 +29,8 @@ [U] public void DefaultNowBehaviour()
29
29
[ U ] public void DeadTimeoutCalculation ( )
30
30
{
31
31
var dateTimeProvider = DateTimeProvider . Default ;
32
- /**
33
- * The default timeout calculation is: `min(timeout * 2 ^ (attempts * 0.5 -1), maxTimeout)`, where the
32
+ /**
33
+ * The default timeout calculation is: `min(timeout * 2 ^ (attempts * 0.5 -1), maxTimeout)`, where the
34
34
* default values for `timeout` and `maxTimeout` are
35
35
*/
36
36
var timeout = TimeSpan . FromMinutes ( 1 ) ;
@@ -40,8 +40,8 @@ [U] public void DeadTimeoutCalculation()
40
40
* Plotting these defaults looks as followed:
41
41
*
42
42
*[[timeout]]
43
- *.Default formula, x -axis time in minutes, y -axis number of attempts to revive
44
- *image::timeoutplot.png[dead timeout]
43
+ *.Default formula, y -axis time in minutes, x -axis number of attempts to revive
44
+ *image::timeoutplot.png[dead timeout]
45
45
*
46
46
* The goal here is that whenever a node is resurrected and is found to still be offline, we send it
47
47
* _back to the doghouse_ for an ever increasingly long period, until we hit a bounded maximum.
@@ -52,7 +52,7 @@ [U] public void DeadTimeoutCalculation()
52
52
53
53
foreach ( var increasedTimeout in timeouts . Take ( 10 ) )
54
54
increasedTimeout . Should ( ) . BeWithin ( maxTimeout ) ;
55
-
55
+
56
56
}
57
57
58
58
}
0 commit comments