Windows 0.3.4 connection resilience and fixed-grid source delta; no private history or other platform changes
This commit is contained in:
@@ -25,7 +25,16 @@ internal static class TailnetReadinessSelfTest
|
||||
policy.Reset(); current = current with { UsesTailnet = true };
|
||||
checks["active_tailnet_waits_ten_minutes"] = !Begin(4_000_000, out _) && policy.NextDue == 4_600_000;
|
||||
checks["active_tailnet_success_retains_transport"] = Begin(4_600_000, out first) && Complete(first, 4_600_100, true) == TailnetReadinessPolicy.Result.Ready && !policy.IsReady;
|
||||
checks["active_tailnet_failure_requests_domain_fallback"] = Begin(5_200_100, out first) && Complete(first, 5_200_200, false).ToString() == "Fallback";
|
||||
checks["single_failed_round_does_not_switch_active_tailnet"] = Begin(5_200_100, out first)
|
||||
&& Complete(first, 5_200_200, false) == TailnetReadinessPolicy.Result.Confirming;
|
||||
checks["confirmation_wait_is_bounded_five_seconds"] = !Begin(5_205_199, out _)
|
||||
&& Begin(5_205_200, out second);
|
||||
checks["second_failed_round_confirms_domain_fallback"] = Complete(second, 5_205_300, false) == TailnetReadinessPolicy.Result.Fallback;
|
||||
policy.Reset();
|
||||
checks["new_active_path_schedules_after_reset"] = !Begin(5_300_000, out _) && Begin(5_900_000, out first);
|
||||
checks["loss_then_recovery_clears_confirmation"] = Complete(first, 5_900_100, false) == TailnetReadinessPolicy.Result.Confirming
|
||||
&& Begin(5_905_100, out second) && Complete(second, 5_905_200, true) == TailnetReadinessPolicy.Result.Ready
|
||||
&& policy.NextDue == 6_505_200;
|
||||
policy.Reset();
|
||||
checks["reset_clears_schedule"] = !policy.IsReady && policy.NextDue == 0;
|
||||
checks["new_session_has_no_duplicate_immediate_probe"] = !Begin(6_000_000, out _) && Begin(6_600_000, out first);
|
||||
@@ -44,6 +53,7 @@ internal static class TailnetReadinessSelfTest
|
||||
checks["busy_completion_is_not_a_failure"] = Begin(10_600_000, out first) && policy.Observe(first, current with { Busy = true }, 10_600_100, false) == TailnetReadinessPolicy.Result.Ignore;
|
||||
foreach (var state in new[] { current with { Wanted = false }, current with { CoreId = null }, current with { Running = false }, current with { HasAuthorizedCandidate = false } })
|
||||
checks["ineligible_state_" + checks.Count] = !policy.TryBegin(state, 12_000_000, out _);
|
||||
foreach (var check in TailnetPingConfirmationSelfTest.CheckAsync().GetAwaiter().GetResult()) checks.Add(check.Key, check.Value);
|
||||
var passed = checks.Values.All(v => v);
|
||||
foreach (var check in checks.Where(c => !c.Value)) Console.WriteLine("FAIL " + check.Key);
|
||||
Console.WriteLine($"{(passed ? "PASS" : "FAIL")} ten-minute Tailnet recheck; {checks.Count} checks");
|
||||
|
||||
Reference in New Issue
Block a user