Skip to content

Commit 43d615e

Browse files
committed
Fix heartbeat test regex to match MySQL column quoting
MySQL fully qualifies column names in UPDATE statements as `table`.`column`, so the regex needs .+ instead of . between SET and last_heartbeat_at.
1 parent 3c91c8e commit 43d615e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/worker_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class WorkerTest < ActiveSupport::TestCase
152152
end
153153
end
154154

155-
assert_no_match /UPDATE .solid_queue_processes. SET .last_heartbeat_at./, log.string
155+
assert_no_match /UPDATE .solid_queue_processes. SET .+last_heartbeat_at/, log.string
156156
ensure
157157
SolidQueue.process_heartbeat_interval = old_heartbeat_interval
158158
end
@@ -169,7 +169,7 @@ class WorkerTest < ActiveSupport::TestCase
169169
end
170170
end
171171

172-
assert_match /UPDATE .solid_queue_processes. SET .last_heartbeat_at./, log.string
172+
assert_match /UPDATE .solid_queue_processes. SET .+last_heartbeat_at/, log.string
173173
ensure
174174
SolidQueue.process_heartbeat_interval = old_heartbeat_interval
175175
end

0 commit comments

Comments
 (0)