Skip to content

Commit a904fb3

Browse files
committed
refactor: update roundtrip function to use enqueue_event for event queuing
- Replaced the `append_events` method with `enqueue_event` in the `roundtrip` function to align with recent changes in event handling. - Adjusted the event queuing to accept a single event, simplifying the code and improving clarity.
1 parent b580f6f commit a904fb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integration_postgres.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ async fn roundtrip() -> Result<()> {
7171

7272
let mut session = store.session();
7373
session.store(id, &customer)?;
74-
session.append_events(
74+
session.enqueue_event(
7575
id,
7676
Expected::Any,
77-
vec![Event::new("CustomerRegistered", &customer)],
77+
Event::new("CustomerRegistered", &customer),
7878
)?;
7979
session.save_changes().await?;
8080

0 commit comments

Comments
 (0)