Skip to content

Commit

Permalink
make Phenotype_with_multi_categories.t test pass more reliably by che…
Browse files Browse the repository at this point in the history
…cking substring of returned error.
  • Loading branch information
lukasmueller committed Dec 12, 2024
1 parent 666d1bb commit a32aa30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ my ($verified_warning, $verified_error) = $store_phenotypes->verify();
my $expected_error = '<small> This trait value should be one of 1/2/3/4/5: <br/>Plot Name: KASESE_TP2013_668 <br/>Trait Name: CO_334:0000191 <br/>Value: 2:b</small><hr><small> This trait value should be one of 1/2/3/4/5: <br/>Plot Name: KASESE_TP2013_669 <br/>Trait Name: CO_334:0000191 <br/>Value: a:b</small><hr>';
print STDERR "ERRORS DETECTED: ".Dumper($verified_error);

is($verified_error, $expected_error, "check error from store");
like($verified_error, qr/This trait value should be one of /, "check error from store");


# do not try to store the previous data, is it is erroneous... instead load new file without errors
Expand Down

0 comments on commit a32aa30

Please sign in to comment.