Skip to content

Commit 3d3050f

Browse files
committed
test
1 parent c6a0974 commit 3d3050f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/org/logstash/filters/geoip/GeoIPFilterTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ void handleEventWithNoCustomFieldsShouldUseDatabasesDefaultFields() {
278278
void givenDatabaseWithCustomizedFieldWhenItsAccessedTheCustomizedIPShouldntThrowAnyErrorAndReportTheLookupAsFailure(Path geoDatabase) {
279279
try (final GeoIPFilter filter = createFilter(geoDatabase, true, Collections.emptyList())) {
280280
final RubyEvent rubyEvent = createRubyEvent("216.160.83.60");
281+
try {
282+
filter.handleEvent(rubyEvent);
283+
} catch (final Exception e) {
284+
e.printStackTrace();
285+
}
281286
assertFalse(filter.handleEvent(rubyEvent), "Lookup of data point with invalid custom fields should report as failed");
282287
}
283288
}

0 commit comments

Comments
 (0)