Skip to content

Commit

Permalink
remove git:// URLs in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jul 30, 2023
1 parent 713897b commit 635e36e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion xt/config_deps.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use strict;
use Test::More;
use xt::Run;

run_L 'git://github.com/kazeburo/CPAN-Test-Dummy-ConfigDeps.git';
run_L 'https://github.com/kazeburo/CPAN-Test-Dummy-ConfigDeps.git';
like last_build_log, qr/Checking if you have Module::CPANfile/;

done_testing;
Expand Down
20 changes: 0 additions & 20 deletions xt/git_uri.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,6 @@ use strict;
use Test::More;
use xt::Run;

run "git://github.com/miyagawa/___.git";
like last_build_log, qr/Fail/;

run "git://github.com/miyagawa/CPAN-Test-Dummy-FromGit.git";
like last_build_log, qr/Cloning/;
like last_build_log, qr/installed .*-0\.01/;

run 'git://github.com/miyagawa/CPAN-Test-Dummy-FromGit.git@devel';
like last_build_log, qr/installed .*-0\.02/;

run 'git://github.com/miyagawa/[email protected]';
like last_build_log, qr/installed .*-0\.02/;

run 'git://github.com/miyagawa/CPAN-Test-Dummy-FromGit.git@acdffda';
like last_build_log, qr/installed .*-0\.02/;

run 'git://github.com/miyagawa/CPAN-Test-Dummy-FromGit.git@nonexistent';
like last_build_log, qr/Failed to checkout 'nonexistent'/;
unlike last_build_log, qr/cannot remove path/;

# check http(s) git uri works
run "https://github.com/miyagawa/CPAN-Test-Dummy-FromGit.git";
like last_build_log, qr/Cloning/;
Expand Down

0 comments on commit 635e36e

Please sign in to comment.