Skip to content

Commit

Permalink
[backend] fix checkpartition usage in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jun 1, 2017
1 parent aa9d0a6 commit 2db9c73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/backend/t/0500-BSSrcServer-Partition.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ eval {
$got = $@;
$expected = "cannot determine partition for Test::Project\n";

is($got,$expected,"Check die if partition cannot determined");
is($got,$expected,"Check die if partition cannot be determined");

no warnings 'once';
$BSConfig::partition = "test";
use warnings;

eval {
my $result = BSSrcServer::Partition::checkpartition($remotemap,$projid);
my $result = BSSrcServer::Partition::checkpartition({ %$remotemap, ':partition' => $BSConfig::partition },$projid);
};

$got = $@;
Expand Down

0 comments on commit 2db9c73

Please sign in to comment.