From f2f3605507a4b18c80f5b896a486bb7f803c5951 Mon Sep 17 00:00:00 2001 From: Chadlia Jerad Date: Thu, 5 Dec 2024 14:51:55 +0100 Subject: [PATCH] Try refactoring TransientStatePersistence test --- .../transient/TransientStatePersistence.lf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/C/src/federated/transient/TransientStatePersistence.lf b/test/C/src/federated/transient/TransientStatePersistence.lf index dec13301c7..e22c1e6b3e 100644 --- a/test/C/src/federated/transient/TransientStatePersistence.lf +++ b/test/C/src/federated/transient/TransientStatePersistence.lf @@ -121,14 +121,6 @@ reactor Middle { lf_set(join, true); =} - reaction(in_from_persistence) {= - self->middle_state = in_from_persistence->value; - lf_print("Recieved the latest state of: {%c,%d} at " PRINTF_TIME ".", - self->middle_state.state_char, - self->middle_state.state_count, - lf_time_logical_elapsed()); - =} - // When an input is received, the internal state is updated, and then sent to // Persistance. reaction(in) -> out, out_to_persistence {= @@ -144,6 +136,14 @@ reactor Middle { lf_stop(); } =} + + reaction(in_from_persistence) {= + self->middle_state = in_from_persistence->value; + lf_print("Recieved the latest state of: {%c,%d} at " PRINTF_TIME ".", + self->middle_state.state_char, + self->middle_state.state_count, + lf_time_logical_elapsed()); + =} } /**