@@ -82,12 +82,23 @@ public void CanReadConfiguration()
8282 [ "Family" ] = "Starks"
8383 } , options . SuperProperties ) ;
8484 // Check the defaults
85- Assert . Equal ( 1000 , options . MaxQueueSize ) ;
86- Assert . Equal ( TimeSpan . FromSeconds ( 30 ) , options . FlushInterval ) ;
85+ Assert . Equal ( 10_000 , options . MaxQueueSize ) ;
86+ Assert . Equal ( TimeSpan . FromSeconds ( 5 ) , options . FlushInterval ) ;
8787 Assert . Equal ( TimeSpan . FromMinutes ( 10 ) , options . FeatureFlagSentCacheSlidingExpiration ) ;
8888 Assert . Equal ( 50_000 , options . FeatureFlagSentCacheSizeLimit ) ;
8989 }
9090
91+ [ Fact ]
92+ public void UsesStandardEventBufferDefaults ( )
93+ {
94+ var options = new PostHogOptions ( ) ;
95+
96+ Assert . Equal ( 10_000 , options . MaxQueueSize ) ;
97+ Assert . Equal ( 100 , options . FlushAt ) ;
98+ Assert . Equal ( 100 , options . MaxBatchSize ) ;
99+ Assert . Equal ( TimeSpan . FromSeconds ( 5 ) , options . FlushInterval ) ;
100+ }
101+
91102 [ Fact ]
92103 public void CanReadSecretKeyConfiguration ( )
93104 {
@@ -240,7 +251,7 @@ public void AllowsOverridingConfiguration()
240251 [ "House" ] = "Tully"
241252 } , options . SuperProperties ) ;
242253 // Check the defaults
243- Assert . Equal ( TimeSpan . FromSeconds ( 30 ) , options . FlushInterval ) ;
254+ Assert . Equal ( TimeSpan . FromSeconds ( 5 ) , options . FlushInterval ) ;
244255 Assert . Equal ( TimeSpan . FromMinutes ( 10 ) , options . FeatureFlagSentCacheSlidingExpiration ) ;
245256 Assert . Equal ( 50_000 , options . FeatureFlagSentCacheSizeLimit ) ;
246257 }
0 commit comments