Skip to content

Commit d525913

Browse files
zzylolclaude
andcommitted
style: cargo fmt for precompute worker tests and netflow e2e
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 456a036 commit d525913

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

asap-query-engine/src/precompute_engine/worker.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,11 +2495,7 @@ aggregations:
24952495
// Idempotent: a window closed by the fallback drains its pane and its
24962496
// wall-clock bookkeeping, so a subsequent flush must not re-emit.
24972497
worker.flush_all().unwrap();
2498-
assert_eq!(
2499-
sink.len(),
2500-
0,
2501-
"already-closed window must not re-emit"
2502-
);
2498+
assert_eq!(sink.len(), 0, "already-closed window must not re-emit");
25032499
}
25042500

25052501
#[test]

asap-query-engine/tests/e2e_netflow_single_second.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ async fn netflow_single_second_batch_is_not_lost_on_shutdown() {
111111
};
112112

113113
let sink = Arc::new(CapturingOutputSink::new());
114-
let sources: Vec<Box<dyn IngestSource>> =
115-
vec![Box::new(JsonFileIngestSource::new(json_cfg))];
114+
let sources: Vec<Box<dyn IngestSource>> = vec![Box::new(JsonFileIngestSource::new(json_cfg))];
116115
let engine = PrecomputeEngine::new(
117116
engine_config_grace_disabled(),
118117
streaming_config,
@@ -146,7 +145,11 @@ async fn netflow_single_second_batch_is_not_lost_on_shutdown() {
146145
output.start_timestamp,
147146
output.end_timestamp
148147
);
149-
assert_eq!(output.start_timestamp % 1_000, 0, "window must be second-aligned");
148+
assert_eq!(
149+
output.start_timestamp % 1_000,
150+
0,
151+
"window must be second-aligned"
152+
);
150153

151154
let sum_acc = acc
152155
.as_any()

0 commit comments

Comments
 (0)