Update regex for reason matching in Elasticsearch spec to support JRuby 10#1250
Update regex for reason matching in Elasticsearch spec to support JRuby 10#1250
Conversation
|
I wonder if this is a good opportunity to move away from having assertions about string representations of ruby objects as the regex is gettting a bit complex to support both jruby 9/10. Without having looked too closely at what produces the data in question, maybe we could print individual fields or use to_json and parse that? |
|
@claude do what Cas said:
|
|
@copilot what about you, can you suggest a fix according to what Cas said in #1250 (comment) ? |
|
@donoghuc unfortunately we're passing a string dlq_writer.write's second argument "reason", so we can't change what that string has (e.g. contain a marshalled json) without changing the shape of what currently goes to the dlq. |
donoghuc
left a comment
There was a problem hiding this comment.
Given the complexity in the regex is confined to a single test assertion I think its low risk. Thanks for looking in to the alternative.
No description provided.