Skip to content

Commit cf2e7f8

Browse files
authored
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
1 parent e724daf commit cf2e7f8

File tree

1 file changed

+1
-0
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/convert

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public static String leadingZerosAreOctalToIp(String ip) {
191191
lastWasBreak = true;
192192
b.append(current).append('.');
193193
current = 0;
194+
octalMode = false;
194195
continue;
195196
}
196197
lastWasBreak = false;

0 commit comments

Comments
 (0)