Skip to content

Commit c6b700a

Browse files
niemyjskiejsmith
authored andcommitted
Since there is only two executions,
1 parent fd05702 commit c6b700a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Exceptionless.Tests/Plugins/PluginTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ public void VerifyDeduplicationFromFiles() {
862862
var errorPlugin = new ErrorPlugin();
863863

864864
foreach (var ev in ErrorDataReader.GetEvents()) {
865-
using (var duplicateCheckerPlugin = new DuplicateCheckerPlugin(TimeSpan.FromMilliseconds(30))) {
865+
using (var duplicateCheckerPlugin = new DuplicateCheckerPlugin(TimeSpan.FromSeconds(1))) {
866866
for (int index = 0; index < 2; index++) {
867867
var contextData = new ContextData();
868868
var context = new EventPluginContext(client, ev, contextData);
@@ -875,7 +875,9 @@ public void VerifyDeduplicationFromFiles() {
875875
Assert.Null(context.Event.Count);
876876
} else {
877877
Assert.True(context.Cancel);
878-
Thread.Sleep(60);
878+
879+
// There is only two executions, so dispose to trigger submitting.
880+
duplicateCheckerPlugin.Dispose();
879881
Assert.Equal(1, context.Event.Count);
880882
}
881883
}

0 commit comments

Comments
 (0)