Skip to content

Commit b14b092

Browse files
fixing tests
1 parent b1c85b0 commit b14b092

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/RustAnalyzer.TestAdapter.UnitTests/Cargo/ToolChainServiceExtensionsTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ public async Task TestRunAsync(string args, string cwd, string eMessage, string
7575

7676
ret.Should().Be(eRes);
7777
por.Messages.Should().ContainInConsecutiveOrder(eMessage.Split('|'));
78-
var cwdErr = cwd == null ? null : new[] { $"{cwd.GetEnvironmentValue()} " };
79-
por.Errors.Should().ContainInConsecutiveOrder(eError?.Split('|') ?? cwdErr ?? Array.Empty<string>());
78+
var cwdErr = cwd == null ? null : new[] { $"{cwd.GetEnvironmentValue().ToLowerInvariant()} " };
79+
por.Errors.Select(x => x.ToLowerInvariant())
80+
.Should().ContainInConsecutiveOrder(eError?.Split('|') ?? cwdErr ?? Array.Empty<string>());
8081
}
8182

8283
public sealed class TestPOR : ProcessOutputRedirector

src/RustAnalyzer.TestAdapter.UnitTests/TestExecutorTests.RunTestsTestsAsync.hello_library.approved.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"Attachments": [],
6060
"Outcome": 2,
61-
"ErrorMessage": "thread 'tests::fibonacci_test::case_3' panicked at src\\lib.rs:33:9:\nassertion `left == right` failed\n left: 1\n right: 2\n",
61+
"ErrorMessage": "\nthread 'tests::fibonacci_test::case_3' panicked at src\\lib.rs:33:9:\nassertion `left == right` failed\n left: 1\n right: 2\n",
6262
"ErrorStackTrace": null,
6363
"DisplayName": "hello_lib.tests.fibonacci_test.case_3",
6464
"Messages": [],
@@ -219,7 +219,7 @@
219219
},
220220
"Attachments": [],
221221
"Outcome": 2,
222-
"ErrorMessage": "thread 'tests::should_fail' panicked at src\\lib.rs:48:9:\nassertion `left != right` failed\n left: 42\n right: 42\n",
222+
"ErrorMessage": "\nthread 'tests::should_fail' panicked at src\\lib.rs:48:9:\nassertion `left != right` failed\n left: 42\n right: 42\n",
223223
"ErrorStackTrace": null,
224224
"DisplayName": "hello_lib.tests.should_fail",
225225
"Messages": [],

src/RustAnalyzer.TestAdapter/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static class Constants
3131
public const string TestsContainerExtension = ".rusttests";
3232
public const string TestContainersSearchPattern = $"*{TestsContainerExtension}";
3333

34-
public const string RlsLatestInPackageVersion = "2024-12-02";
34+
public const string RlsLatestInPackageVersion = "2025-02-10";
3535
public static readonly Version MinimumRequiredVsVersion = new(17, 12);
3636

3737
public static readonly PathEx TestsContainerExtension2 = (PathEx)TestsContainerExtension;

src/external/rust-analyzer.exe

1.13 MB
Binary file not shown.

src/external/rust_analyzer.pdb

744 KB
Binary file not shown.

0 commit comments

Comments
 (0)