Skip to content

Commit

Permalink
Ensure module lookup after installation works
Browse files Browse the repository at this point in the history
Check that we don't cache when .resolve'ing a missing module by immediately installing said module and seeing if .resolve returns non-Nil.
  • Loading branch information
ugexe committed Nov 1, 2017
1 parent c1de585 commit 530b72e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S11-repository/candidates.t
Expand Up @@ -158,6 +158,8 @@ subtest 'Basic recommendation manager queries' => {
my $repo = CompUnit::RepositoryRegistry.repository-for-spec("inst#" ~ make-temp-dir().child('my-repo').absolute);
my $cu-depspec = CompUnit::DependencySpecification.new(:short-name<XXX>);

is $repo.candidates($cu-depspec).elems, 0;
nok $repo.resolve($cu-depspec);
ok $repo.install($dist);
is $repo.candidates($cu-depspec).elems, 1;
ok $repo.resolve($cu-depspec);
Expand Down

0 comments on commit 530b72e

Please sign in to comment.