From 779c2b7a0e8a1ad9d28664596a2041aa53bd4e42 Mon Sep 17 00:00:00 2001 From: Denis Gribanov Date: Wed, 6 Dec 2017 00:02:43 +0300 Subject: [PATCH] Delayed tagging #2 (tests fix) --- src/test/java/org/scm4j/releaser/cli/CLITest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/scm4j/releaser/cli/CLITest.java b/src/test/java/org/scm4j/releaser/cli/CLITest.java index 67c59772..4a21b03c 100644 --- a/src/test/java/org/scm4j/releaser/cli/CLITest.java +++ b/src/test/java/org/scm4j/releaser/cli/CLITest.java @@ -220,7 +220,8 @@ public void testExceptionUnknownComponent() throws Exception { String[] args = new String[] {CLICommand.STATUS.getStrValue(), "unknown:component"}; CommandLine cmd = new CommandLine(args); CLI.setReleaser(new SCMReleaser()); - try { + try (TestEnvironment te = new TestEnvironment()) { + te.generateTestEnvironmentNoVCS(); new CLI().getActionTree(cmd); fail(); } catch (EComponentConfig e) {