Skip to content

Commit cac535b

Browse files
committed
Remove debug print statements from fdb_archive_simple test for clarity
1 parent c4f67ac commit cac535b

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

rust/crates/fdb/tests/fdb_integration.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,12 @@ fn test_fdb_list_no_results() {
174174
fn test_fdb_archive_simple() {
175175
let tmpdir = tempfile::tempdir().expect("failed to create temp dir");
176176
let config = create_test_config(tmpdir.path());
177-
println!("Temp dir: {}", tmpdir.path().display());
178-
println!("Config:\n{config}");
179177

180178
let fdb = Fdb::open(Some(&config), None).expect("failed to create FDB from YAML");
181179

182-
// Read test GRIB data
183180
let grib_path = fixtures_dir().join("template.grib");
184181
let grib_data = fs::read(&grib_path).expect("failed to read template.grib");
185-
println!("GRIB data size: {} bytes", grib_data.len());
186182

187-
// Create key matching schema: class, expver, stream, date, time, type, levtype, step, param
188183
let key = Key::new()
189184
.with("class", "rd")
190185
.with("expver", "xxxx")
@@ -196,15 +191,8 @@ fn test_fdb_archive_simple() {
196191
.with("step", "0")
197192
.with("param", "151130");
198193

199-
println!("Archiving...");
200-
let result = fdb.archive(&key, &grib_data);
201-
println!("Archive result: {result:?}");
202-
203-
if result.is_ok() {
204-
println!("Flushing...");
205-
fdb.flush().expect("flush failed");
206-
println!("Done!");
207-
}
194+
fdb.archive(&key, &grib_data).expect("archive failed");
195+
fdb.flush().expect("flush failed");
208196
}
209197

210198
#[test]

0 commit comments

Comments
 (0)