mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 23:12:54 +00:00
Remove unnecessary 'pub' from test module, and remove dead constant.
After making the test module private, the compiler noticed and warned that the constant is unused.
This commit is contained in:
@@ -1085,7 +1085,7 @@ pub mod repo_harness {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod tests {
|
||||
mod tests {
|
||||
use super::metadata::METADATA_FILE_NAME;
|
||||
use super::*;
|
||||
use crate::keyspace::KeySpaceAccum;
|
||||
@@ -1467,12 +1467,6 @@ pub mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// Target file size in the unit tests. In production, the target
|
||||
// file size is much larger, maybe 1 GB. But a small size makes it
|
||||
// much faster to exercise all the logic for creating the files,
|
||||
// garbage collection, compaction etc.
|
||||
pub const TEST_FILE_SIZE: u64 = 4 * 1024 * 1024;
|
||||
|
||||
#[test]
|
||||
fn test_images() -> Result<()> {
|
||||
let repo = RepoHarness::create("test_images")?.load();
|
||||
|
||||
Reference in New Issue
Block a user