Browse Source

ESQL: Fix bug in octal ip parsing tests (#126552) (#126575)

This fixes a bug in the tests for parsing ipv4 addresses with leading
zeros as octal numbers. The bug was in the expectation code that we use
for random input ips.

Closes #126496
Nik Everett 6 months ago
parent
commit
cf2e7f8d67

+ 1 - 0
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert/ParseIpTests.java

@@ -191,6 +191,7 @@ public class ParseIpTests extends ESTestCase {
                 lastWasBreak = true;
                 b.append(current).append('.');
                 current = 0;
+                octalMode = false;
                 continue;
             }
             lastWasBreak = false;