Skip to content

Commit

Permalink
Remove test case that is covered in unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 12, 2023
1 parent c390452 commit d04971c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/read_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@ void processEvent(const podio::Frame& event, int eventNum, podio::version::Versi
}
}

try {
// not assigning to a variable, because it will remain unused, we just want
// the exception here
event.get<ExampleClusterCollection>("notthere");
} catch (const std::runtime_error& err) {
if (std::string(err.what()) != "No collection \'notthere\' is present in the EventStore") {
throw std::runtime_error("Trying to get non present collection \'notthere' should throw an exception");
}
}

// read collection meta data
auto& hits = event.get<ExampleHitCollection>("hits");

Expand Down

0 comments on commit d04971c

Please sign in to comment.