Skip to content

Commit

Permalink
Fix perf context test (rust-rocksdb#321)
Browse files Browse the repository at this point in the history
Fixing perf context test failure with `cargo test -- --test_threads=1`. The test assume default perf level is `PerfLevel::EnableCount`, which apparently will affected by other tests.

Tested by running `cargo test -- --test_threads=1`.

Closing rust-rocksdb#318 

Signed-off-by: Yi Wu <yiwu@pingcap.com>
  • Loading branch information
yiwu-arbug authored Jul 23, 2019
1 parent d67f38e commit 09b8032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/perf_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ mod test {
}
}

set_perf_level(PerfLevel::EnableCount);
let mut ctx = PerfContext::get();

let mut iter = db.iter();
Expand Down

0 comments on commit 09b8032

Please sign in to comment.