Skip to content

Commit

Permalink
Removes broken test searching nonexistent issues dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Gregson committed May 3, 2015
1 parent 5017e4c commit 3cf4ad5
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions tests/30_search.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use strict;
use utf8;
use Test::More tests => 36;
use Test::More tests => 35;

BEGIN { use_ok( "EPrints" ); }
BEGIN { use_ok( "EPrints::Test" ); }
Expand Down Expand Up @@ -423,27 +423,6 @@

ok(defined($list) && $list->count > 0, "search multiple field".&describe($searchexp).&sql($searchexp));


my $issue = $sample_eprint->create_subdataobj( 'item_issues', {
type => "tests/30_search",
status => "resolved",
});
$issue = $session->dataset( 'issue' )->dataobj( "tests/30_search" )
if !defined $issue;

$searchexp = EPrints::Search->new(
session => $session,
dataset => $dataset,
);

$searchexp->add_field( $session->dataset( 'issue' )->field( "status" ), "resolved" );

$list = eval { $searchexp->perform_search };

ok(defined($list) && $list->count > 0, "subobject join_path".&describe($searchexp).&sql($searchexp));

$issue->remove if defined $issue;

SKIP:
{
skip "Enable Xapian", 1 if !defined $session->plugin( "Search::Xapian" );
Expand Down

0 comments on commit 3cf4ad5

Please sign in to comment.