Commit 2ed93144 authored by Kyle Wiebers's avatar Kyle Wiebers

Adjust the regex for lsn spec

lsns are hexadecimal locators which include A-F
https://www.postgresql.org/docs/current/datatype-pg-lsn.html

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/324682
parent df770ee2
......@@ -244,7 +244,7 @@ RSpec.describe Gitlab::Database::LoadBalancing::LoadBalancer, :request_store do
describe '#primary_write_location' do
it 'returns a String in the right format' do
expect(lb.primary_write_location).to match(/[A-E0-9]{1,8}\/[A-E0-9]{1,8}/)
expect(lb.primary_write_location).to match(/[A-F0-9]{1,8}\/[A-F0-9]{1,8}/)
end
it 'raises an error if the write location could not be retrieved' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment