You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/09/04 08:19:46 UTC

[incubator-skywalking-oal-tool] branch master updated: Fix CI.

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-oal-tool.git


The following commit(s) were added to refs/heads/master by this push:
     new a44e9d0  Fix CI.
a44e9d0 is described below

commit a44e9d09b3249ed80c04682abe7128a3905fad66
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Tue Sep 4 16:19:37 2018 +0800

    Fix CI.
---
 .../java/org/apache/skywalking/oal/tool/output/FileGeneratorTest.java  | 3 ++-
 .../src/test/resources/expectedFiles/IndicatorImplementorExpected.java | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/oal-parser/src/test/java/org/apache/skywalking/oal/tool/output/FileGeneratorTest.java b/oal-parser/src/test/java/org/apache/skywalking/oal/tool/output/FileGeneratorTest.java
index e27e61b..3ae6e38 100644
--- a/oal-parser/src/test/java/org/apache/skywalking/oal/tool/output/FileGeneratorTest.java
+++ b/oal-parser/src/test/java/org/apache/skywalking/oal/tool/output/FileGeneratorTest.java
@@ -22,6 +22,7 @@ import freemarker.template.TemplateException;
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
 import java.io.StringWriter;
 import java.util.LinkedList;
 import java.util.List;
@@ -80,7 +81,7 @@ public class FileGeneratorTest {
         fileGenerator.generateIndicatorImplementor(result, writer);
         Assert.assertEquals(readExpectedFile("IndicatorImplementorExpected.java"), writer.toString());
 
-        //fileGenerator.generateIndicatorImplementor(result, new OutputStreamWriter(System.out));
+        // fileGenerator.generateIndicatorImplementor(result, new OutputStreamWriter(System.out));
     }
 
     @Test
diff --git a/oal-parser/src/test/resources/expectedFiles/IndicatorImplementorExpected.java b/oal-parser/src/test/resources/expectedFiles/IndicatorImplementorExpected.java
index 85e3607..9b8f134 100644
--- a/oal-parser/src/test/resources/expectedFiles/IndicatorImplementorExpected.java
+++ b/oal-parser/src/test/resources/expectedFiles/IndicatorImplementorExpected.java
@@ -67,6 +67,7 @@ public class ServiceAvgIndicator extends LongAvgIndicator implements AlarmSuppor
         ServiceAvgIndicator indicator = (ServiceAvgIndicator)obj;
         if (id != indicator.id)
             return false;
+
         if (getTimeBucket() != indicator.getTimeBucket())
             return false;