eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject incubator-eagle git commit: [MINOR] Fix test fail on windows
Date Thu, 10 Nov 2016 04:29:09 GMT
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 <tangjijun@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 <tangjijun@yhd.com>
Authored: Thu Nov 10 12:29:02 2016 +0800
Committer: Hao Chen <hao@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 + "" +


Mime
View raw message