aion-store 0.6.0

Persistence contracts and in-memory event stores for Aion durable workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! In-memory `EventStore` conformance coverage.

use std::sync::Arc;

use aion_store::{EventStore, InMemoryStore, StoreError, conformance::run_event_store_suite};

#[tokio::test]
async fn inmemory_store_satisfies_event_store_conformance_suite() -> Result<(), StoreError> {
    run_event_store_suite(|| async {
        let store: Arc<dyn EventStore> = Arc::new(InMemoryStore::default());
        store
    })
    .await
}