Skip to content

Commit

Permalink
Fix typo: occured -> occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
ohbarye committed May 26, 2024
1 parent 77b43fb commit 1e528d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Note that the user requires the PROCESS priviledge to collect the information.
When `ActiveRecord::ConnectionTimeoutError` occurs, you can see the information of connection owners (threads):

```
ActiveRecord::ConnectionTimeoutError occured:
ActiveRecord::ConnectionTimeoutError occurred:
connection owners:
Thread #<Thread:0x00007fbda205fa70 sleep_forever> status=sleep priority=0
/path/to/activerecord-debug_errors/spec/activerecord/debug_errors/ext/connection_adapters/connection_pool_spec.rb:32:in `join'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def acquire_connection(*args)
def dump_threads
logger = ActiveRecord::Base.logger

logger.error "ActiveRecord::ConnectionTimeoutError occured:"
logger.error "ActiveRecord::ConnectionTimeoutError occurred:"

dump_thread = ->(thread) {
logger.error " Thread #{thread} status=#{thread.status} priority=#{thread.priority}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end.each(&:join)
}.to raise_error(ActiveRecord::ConnectionTimeoutError)

expect(log.string).to include("ActiveRecord::ConnectionTimeoutError occured:")
expect(log.string).to include("ActiveRecord::ConnectionTimeoutError occurred:")
expect(log.string).to include("connection owners:")
expect(log.string).to include("other threads")

Expand Down

0 comments on commit 1e528d2

Please sign in to comment.