File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ impl EnvVars {
369369 . filter ( |x| !x. is_empty ( ) )
370370 . collect ( )
371371 }
372+ #[ cfg( debug_assertions) ]
372373 pub fn reorg_threshold ( & self ) -> i32 {
373374 // The default reorganization (reorg) threshold is set to 250.
374375 // For testing purposes, we need to set this threshold to 0 because:
@@ -381,6 +382,10 @@ impl EnvVars {
381382 self . reorg_threshold
382383 }
383384 }
385+ #[ cfg( not( debug_assertions) ) ]
386+ pub fn reorg_threshold ( & self ) -> i32 {
387+ self . reorg_threshold
388+ }
384389}
385390
386391impl Default for EnvVars {
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ async fn data_source_revert() -> anyhow::Result<()> {
181181 // since it uses the same deployment id.
182182 data_source_long_revert ( ) . await . unwrap ( ) ;
183183
184+ * TEST_WITH_NO_REORG . lock ( ) . unwrap ( ) = false ;
185+
184186 Ok ( ( ) )
185187}
186188
You can’t perform that action at this time.
0 commit comments