# IGNITE-173 Fixed visorcmd test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/1cac5184 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/1cac5184 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/1cac5184 Branch: refs/heads/ignite-111 Commit: 1cac51840582b16fc6fc2a6f86cf946fd26a4f76 Parents: ce0c304 Author: anovikov <anovi...@gridgain.com> Authored: Fri Feb 6 09:22:22 2015 +0700 Committer: anovikov <anovi...@gridgain.com> Committed: Fri Feb 6 09:22:22 2015 +0700 ---------------------------------------------------------------------- .../apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/1cac5184/modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala ---------------------------------------------------------------------- diff --git a/modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala b/modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala index ada6341..173e884 100644 --- a/modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala +++ b/modules/visor-console/src/test/scala/org/apache/ignite/visor/commands/open/VisorOpenCommandSpec.scala @@ -31,10 +31,8 @@ class VisorOpenCommandSpec extends VisorRuntimeBaseSpec(3) { } it should "print error message when already connected" in { - try + intercept[IgniteCheckedException] { openVisor() - catch { - case ignored: IgniteCheckedException => } } }