You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2018/12/06 13:18:49 UTC
[incubator-skywalking] branch oal-tool-movein updated: Fix test
cases.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch oal-tool-movein
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/oal-tool-movein by this push:
new 376d00e Fix test cases.
376d00e is described below
commit 376d00e95069b7bd04662cb5bb6dee06d61fa9ea
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Dec 6 21:18:41 2018 +0800
Fix test cases.
---
.../java/org/apache/skywalking/oal/tool/parser/DeepAnalysisTest.java | 2 +-
.../java/org/apache/skywalking/oal/tool/parser/ScriptParserTest.java | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/DeepAnalysisTest.java b/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/DeepAnalysisTest.java
index abecfc7..b1bf355 100644
--- a/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/DeepAnalysisTest.java
+++ b/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/DeepAnalysisTest.java
@@ -23,7 +23,7 @@ import java.util.List;
import org.junit.*;
public class DeepAnalysisTest {
- @Before
+ @BeforeClass
public void init() throws IOException {
Indicators.init();
}
diff --git a/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/ScriptParserTest.java b/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/ScriptParserTest.java
index de98ff6..82170e1 100644
--- a/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/ScriptParserTest.java
+++ b/oap-server/generate-tool/src/test/java/org/apache/skywalking/oal/tool/parser/ScriptParserTest.java
@@ -23,6 +23,11 @@ import java.util.List;
import org.junit.*;
public class ScriptParserTest {
+ @BeforeClass
+ public void init() throws IOException {
+ Indicators.init();
+ }
+
@Test
public void testParse() throws IOException {
ScriptParser parser = ScriptParser.createFromScriptText(