Skip to content

Commit 67539a7

Browse files
committed
Improve exception type and message
1 parent 2813b9d commit 67539a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fakeIngestion/standalone/src/main/java/com/microsoft/applicationinsights/test/fakeingestion/MockedAppInsightsIngestionServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public List<Envelope> waitForItems(final String type, final int numItems) throws
113113
}
114114
}, numItems, 10, TimeUnit.SECONDS);
115115
if (items.size() > numItems) {
116-
throw new IllegalStateException("Received too many items of type " + type);
116+
throw new AssertionError("Expecting " + numItems + " of type " + type + ", but received " + items.size());
117117
}
118118
return items;
119119
}

0 commit comments

Comments
 (0)