mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-17 22:12:03 +09:00
routes: add property test for PrimaryRoutes algorithm
Generate randomised sequences of ConnectAdvertise, Disconnect, ProbeUnhealthy, ProbeHealthy and ApprovedRoutesChange operations with rapid and check the per-prefix primary chosen by the implementation matches a reference model after every step. Used to broaden the search for #3203 beyond hand-enumerated disconnect/reconnect sequences. Algorithm passes 5000 checks; kept as a safety net for future changes to primary route selection. Updates #3203
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${prev.stdenv.hostPlatform.system};
|
||||
buildGo = pkgs.buildGo126Module;
|
||||
vendorHash = "sha256-1jVYsI73Sa9/xigxldfvH0TkQThJIGGIq+1A7ARZ068=";
|
||||
vendorHash = "sha256-8vTEkPEMbJ6DSOjcoQrYRyKSYI8jjcllTmJ6RXmUV9w=";
|
||||
in
|
||||
{
|
||||
headscale = buildGo {
|
||||
|
||||
Reference in New Issue
Block a user