Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions spec/pg/replication_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ private record Context,
type_name : String = "test_type_#{Random::Secure.hex}"

private def wait_for(condition = "the block to return truthy", timeout : Time::Span = 2.seconds, &)
start = Time.monotonic
start = Time.instant
until yield
if Time.monotonic - start > 2.seconds
if Time.instant - start > 2.seconds
raise "Timed out waiting for #{condition}"
end
sleep 5.milliseconds
Expand Down
Loading