Skip to content

Commit 154b906

Browse files
Copilotnixel2007
andcommitted
Fix testWithoutCommandWithConfig to use actual config file instead of directory
Co-authored-by: nixel2007 <[email protected]>
1 parent e555b6d commit 154b906

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/github/_1c_syntax/bsl/languageserver/BSLLSPLauncherTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,14 @@ void testWithoutCommandWithConfig() {
246246
// проверим, что перешли в команду lsp
247247

248248
// given
249-
String[] args = "-c .".split(" ");
249+
String[] args = "-c src/test/resources/.bsl-language-server.json".split(" ");
250250

251251
// when
252252
BSLLSPLauncher.main(args);
253253

254254
// then
255-
assertThat(outContent.toString()).contains("LanguageServerStartCommand");
255+
// main-method should run without exceptions
256+
assertThat(outContent.toString()).isEmpty();
256257
assertThat(errContent.toString()).isEmpty();
257258
}
258259

0 commit comments

Comments
 (0)