Skip to content

Commit 918b334

Browse files
committed
Move test fixtures
1 parent e44dd5b commit 918b334

3 files changed

Lines changed: 8 additions & 990 deletions

File tree

trino-lb-core/src/trino_api/sample_trino_events/query_created.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

trino-lb-core/src/trino_api/sample_trino_events/query_finished.json

Lines changed: 0 additions & 945 deletions
This file was deleted.

trino-lb-core/src/trino_api/trino_events.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ mod tests {
5353

5454
#[test]
5555
fn test_deserialization() {
56-
let query_crated: TrinoEvent =
57-
serde_json::from_str(include_str!("sample_trino_events/query_created.json"))
58-
.expect("Failed to deserialize query created event");
56+
let query_crated: TrinoEvent = serde_json::from_str(include_str!(
57+
"../../tests/sample_trino_events/query_created.json"
58+
))
59+
.expect("Failed to deserialize query created event");
5960
assert_eq!(query_crated.query_id(), "20250328_101456_00000_gt85c");
6061
assert_eq!(query_crated.query_state(), &TrinoQueryState::Queued);
6162

62-
let query_finished: TrinoEvent =
63-
serde_json::from_str(include_str!("sample_trino_events/query_finished.json"))
64-
.expect("Failed to deserialize query finished event");
63+
let query_finished: TrinoEvent = serde_json::from_str(include_str!(
64+
"../../tests/sample_trino_events/query_finished.json"
65+
))
66+
.expect("Failed to deserialize query finished event");
6567
assert_eq!(query_finished.query_state(), &TrinoQueryState::Finished);
6668
}
6769
}

0 commit comments

Comments
 (0)