Skip to content

Commit c3f76ab

Browse files
author
Zoran Cvetkov
committed
address review comments
1 parent ddc9eac commit c3f76ab

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

graph/src/env/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

386391
impl Default for EnvVars {

tests/tests/runner_tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)