Skip to content

Commit 8123ac3

Browse files
committed
fixed test
1 parent a0a6987 commit 8123ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/index/analysis/CustomNormalizerTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public Reader create(Reader reader) {
137137
@Override
138138
public int read(char[] cbuf, int off, int len) throws IOException {
139139
int result = reader.read(cbuf, off, len);
140-
for (int i = off; i < result; i++) {
140+
for (int i = off; i < off + len; i++) {
141141
if (cbuf[i] == 'a') {
142142
cbuf[i] = 'z';
143143
}

0 commit comments

Comments
 (0)