Repository: incubator-drill Updated Branches: refs/heads/master 3fa1322b3 -> f2ebfc6fa
DRILL-656: Fix for test case failure in TestPoolChunkTrim Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/a925c278 Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/a925c278 Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/a925c278 Branch: refs/heads/master Commit: a925c27897ae983b3bf8d04741f86b8292b23699 Parents: 3fa1322 Author: Aditya Kishore <[email protected]> Authored: Wed May 7 08:34:16 2014 -0700 Committer: Jacques Nadeau <[email protected]> Committed: Fri May 9 16:46:05 2014 -0700 ---------------------------------------------------------------------- .../bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/a925c278/exec/bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java ---------------------------------------------------------------------- diff --git a/exec/bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java b/exec/bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java index 9a0f74a..f7ba7f2 100644 --- a/exec/bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java +++ b/exec/bufferl/src/test/java/io/netty/buffer/TestPoolChunkTrim.java @@ -17,6 +17,8 @@ */ package io.netty.buffer; +import io.netty.util.internal.StringUtil; + import java.nio.ByteBuffer; import org.junit.Assert; @@ -201,7 +203,7 @@ public class TestPoolChunkTrim { String s = toString(); // Do for each line in the string - for (int f=0, l=s.indexOf('\n',f); l != -1; f=l+1, l=s.indexOf('\n',f)) { + for (int f=0, l=s.indexOf(StringUtil.NEWLINE, f); l != -1; f=l+StringUtil.NEWLINE.length(), l=s.indexOf(StringUtil.NEWLINE, f)) { // if the line contains pattern, then success. if (s.substring(f,l).matches(".*"+pattern+".*")) return this;
