You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2016/11/10 04:29:09 UTC
incubator-eagle git commit: [MINOR] Fix test fail on windows
Repository: incubator-eagle
Updated Branches:
refs/heads/master 3099a9e8c -> ad8cc9c99
[MINOR] Fix test fail on windows
- Fix test fail on windows by change to END_LINE.length()
Author: r7raul1984 <ta...@yhd.com>
Closes #641 from r7raul1984/EAGLE-733-MINOR.
Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/ad8cc9c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/ad8cc9c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/ad8cc9c9
Branch: refs/heads/master
Commit: ad8cc9c99bf33c75ebc1de60f87fc91128535039
Parents: 3099a9e
Author: r7raul1984 <ta...@yhd.com>
Authored: Thu Nov 10 12:29:02 2016 +0800
Committer: Hao Chen <ha...@apache.org>
Committed: Thu Nov 10 12:29:02 2016 +0800
----------------------------------------------------------------------
.../test/java/org/apache/eagle/alert/metric/MetricSystemTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/ad8cc9c9/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/test/java/org/apache/eagle/alert/metric/MetricSystemTest.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/test/java/org/apache/eagle/alert/metric/MetricSystemTest.java b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/test/java/org/apache/eagle/alert/metric/MetricSystemTest.java
index 6632f80..688e321 100644
--- a/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/test/java/org/apache/eagle/alert/metric/MetricSystemTest.java
+++ b/eagle-core/eagle-alert-parent/eagle-alert/alert-common/src/test/java/org/apache/eagle/alert/metric/MetricSystemTest.java
@@ -188,7 +188,7 @@ public class MetricSystemTest {
sink.report();
sink.stop();
String result = bytes.toString();
- result = result.substring(result.indexOf(END_LINE) + 1);//remove first line
+ result = result.substring(result.indexOf(END_LINE) + END_LINE.length());//remove first line
Assert.assertEquals("" + END_LINE + "" +
"-- Gauges ----------------------------------------------------------------------" + END_LINE + "" +
"name" + END_LINE + "" +