diff --git a/lib/repo_tools.pm b/lib/repo_tools.pm index 7d4987b76fac..7fb8b10ca253 100644 --- a/lib/repo_tools.pm +++ b/lib/repo_tools.pm @@ -480,7 +480,7 @@ sub validate_repo_properties { } if ($args->{URI}) { - assert_true($actual_repo_data->{URI} =~ /$args->{Alias}/, + assert_true($actual_repo_data->{URI} =~ /$args->{URI}/, "Repository $args->{Name} has wrong URI, expected: '$args->{URI}', got: '$actual_repo_data->{URI}'"); }