Skip to content

Commit

Permalink
chore: remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveigah committed Nov 22, 2024
1 parent f386136 commit 826a9bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/support/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -279,6 +276,10 @@ defmodule Klife.TestUtils do
_ -> :noop
end
end)

assert status == txn_status

:ok
end
end

Expand Down

0 comments on commit 826a9bc

Please sign in to comment.