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 21, 2024
1 parent f386136 commit d972abf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 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,8 @@ defmodule Klife.TestUtils do
_ -> :noop
end
end)

assert status == txn_status
end
end

Expand Down

0 comments on commit d972abf

Please sign in to comment.