From 826a9bc666cfb21b05c84639423067cec51249d3 Mon Sep 17 00:00:00 2001 From: Gabriel Oliveira Date: Thu, 21 Nov 2024 20:55:44 -0300 Subject: [PATCH] chore: remove sleep --- test/support/utils.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/support/utils.ex b/test/support/utils.ex index 12e63df..7847daf 100644 --- a/test/support/utils.ex +++ b/test/support/utils.ex @@ -257,7 +257,6 @@ defmodule Klife.TestUtils do offset, opts \\ [] ) do - Process.sleep(500) partition = Keyword.get(opts, :partition, expected_record.partition) iso_lvl = Keyword.get(opts, :isolation, :committed) txn_status = Keyword.get(opts, :txn_status, :committed) @@ -269,8 +268,6 @@ defmodule Klife.TestUtils do :not_found {stored_record, status} -> - assert status == txn_status - Enum.each(Map.from_struct(expected_record), fn {k, v} -> case k do :value -> assert v == stored_record.value @@ -279,6 +276,10 @@ defmodule Klife.TestUtils do _ -> :noop end end) + + assert status == txn_status + + :ok end end