@@ -329,9 +329,9 @@ func TestRegisterCityWithSupervisorWaitsForConfiguredStartupTimeout(t *testing.T
329329 if err != nil {
330330 t .Fatal (err )
331331 }
332- // Registry.Register resolves symlinks (e.g. /var → /private/var on macOS),
333- // so compare against the resolved path.
334- resolvedCityPath , _ := filepath . EvalSymlinks (cityPath )
332+ // Registry.Register stores the same canonical comparison form used by
333+ // runtime path comparisons .
334+ resolvedCityPath := canonicalTestPath (cityPath )
335335 if len (entries ) != 1 || entries [0 ].Path != resolvedCityPath {
336336 t .Fatalf ("expected retained registry entry for %s, got %v" , resolvedCityPath , entries )
337337 }
@@ -792,9 +792,9 @@ func TestUnregisterCityFromSupervisorRestoresRegistrationOnReloadFailure(t *test
792792 if err != nil {
793793 t .Fatal (err )
794794 }
795- // Registry.Register resolves symlinks (e.g. /var → /private/var on macOS),
796- // so compare against the resolved path.
797- resolvedCityPath , _ := filepath . EvalSymlinks (cityPath )
795+ // Registry.Register stores the same canonical comparison form used by
796+ // runtime path comparisons .
797+ resolvedCityPath := canonicalTestPath (cityPath )
798798 if len (entries ) != 1 || entries [0 ].Path != resolvedCityPath {
799799 t .Fatalf ("expected restored registry entry for %s, got %v" , resolvedCityPath , entries )
800800 }
@@ -1028,7 +1028,7 @@ func TestUnregisterCityFromSupervisorRestoresRegistrationWhenControllerStopWaitF
10281028 if err != nil {
10291029 t .Fatal (err )
10301030 }
1031- resolvedCityPath , _ := filepath . EvalSymlinks (cityPath )
1031+ resolvedCityPath := canonicalTestPath (cityPath )
10321032 if len (entries ) != 1 || entries [0 ].Path != resolvedCityPath {
10331033 t .Fatalf ("expected restored registry entry for %s, got %v" , resolvedCityPath , entries )
10341034 }
0 commit comments