From eb71f3750c9e4e628164080c85cc2460d757dc59 Mon Sep 17 00:00:00 2001
From: gvolfing <gabor.volfinger@memgraph.io>
Date: Tue, 9 Aug 2022 16:25:00 +0200
Subject: [PATCH] Check against cas_succeeded

---
 tests/simulation/sharded_map.cpp | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/simulation/sharded_map.cpp b/tests/simulation/sharded_map.cpp
index ee41d833b..f547dc9c6 100644
--- a/tests/simulation/sharded_map.cpp
+++ b/tests/simulation/sharded_map.cpp
@@ -261,12 +261,9 @@ int main() {
 
     bool cas_succeeded = write_res.shard_rsm_success;
 
-    // if (cas_succeeded) {
-    //   last_known_value = i;
-    // } else {
-    //   last_known_value = cas_response.last_value;
-    //   continue;
-    // }
+    if (!cas_succeeded) {
+      continue;
+    }
 
     // ... write_res.