From 69a2f6e060bf4dae571a08c6e2d5cb11a37324fb Mon Sep 17 00:00:00 2001 From: donoghuc Date: Fri, 17 Oct 2025 13:26:59 -0700 Subject: [PATCH] Update test to be more flexible w/error message This commit updates the expectation for the message when max bytes is exceeded to be more flexible. Instead of an exact match it expects a regex. This allows slight changes in the error message. --- spec/codecs/json_lines_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/codecs/json_lines_spec.rb b/spec/codecs/json_lines_spec.rb index 7fc9ff5..3a87e06 100644 --- a/spec/codecs/json_lines_spec.rb +++ b/spec/codecs/json_lines_spec.rb @@ -131,7 +131,7 @@ it "should raise an error if the max bytes are exceeded" do expect { subject.decode(maximum_payload << "z") - }.to raise_error(java.lang.IllegalStateException, "input buffer full") + }.to raise_error(java.lang.IllegalStateException, /input buffer full/) end end