step 2
This commit is contained in:
@@ -236,6 +236,13 @@ void TestRuntimeCoordinatorPersistenceEvents()
|
||||
Expect(store.InitializeStore(error), "runtime store initializes in isolated fixture");
|
||||
Expect(error.empty(), "runtime store initialization has no error");
|
||||
|
||||
const PersistenceRequest snapshotRequest = PersistenceRequest::RuntimeStateRequest("unit-test");
|
||||
const PersistenceSnapshot snapshot = store.BuildRuntimeStatePersistenceSnapshot(snapshotRequest);
|
||||
Expect(snapshot.targetKind == PersistenceTargetKind::RuntimeState, "runtime store builds a runtime-state persistence snapshot");
|
||||
Expect(snapshot.reason == "unit-test", "runtime-state persistence snapshot preserves request reason");
|
||||
Expect(snapshot.targetPath.filename().string() == "runtime_state.json", "runtime-state persistence snapshot targets the runtime state file");
|
||||
Expect(snapshot.contents.find("\"layers\"") != std::string::npos, "runtime-state persistence snapshot contains serialized layer state");
|
||||
|
||||
RuntimeEventDispatcher dispatcher(64);
|
||||
std::vector<RuntimeEvent> seenEvents;
|
||||
dispatcher.SubscribeAll([&seenEvents](const RuntimeEvent& event) {
|
||||
|
||||
Reference in New Issue
Block a user