File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
test/Exceptionless.Tests/Plugins Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -862,7 +862,7 @@ public void VerifyDeduplicationFromFiles() {
862
862
var errorPlugin = new ErrorPlugin ( ) ;
863
863
864
864
foreach ( var ev in ErrorDataReader . GetEvents ( ) ) {
865
- using ( var duplicateCheckerPlugin = new DuplicateCheckerPlugin ( TimeSpan . FromMilliseconds ( 30 ) ) ) {
865
+ using ( var duplicateCheckerPlugin = new DuplicateCheckerPlugin ( TimeSpan . FromSeconds ( 1 ) ) ) {
866
866
for ( int index = 0 ; index < 2 ; index ++ ) {
867
867
var contextData = new ContextData ( ) ;
868
868
var context = new EventPluginContext ( client , ev , contextData ) ;
@@ -875,7 +875,9 @@ public void VerifyDeduplicationFromFiles() {
875
875
Assert . Null ( context . Event . Count ) ;
876
876
} else {
877
877
Assert . True ( context . Cancel ) ;
878
- Thread . Sleep ( 60 ) ;
878
+
879
+ // There is only two executions, so dispose to trigger submitting.
880
+ duplicateCheckerPlugin . Dispose ( ) ;
879
881
Assert . Equal ( 1 , context . Event . Count ) ;
880
882
}
881
883
}
You can’t perform that action at this time.
0 commit comments