From 6f78477c2d74925a855b9756646b19b8fa1351f2 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 16 Nov 2021 13:09:10 +0100 Subject: [PATCH] Fix CI (#92) --- .../Solutions/CompileErrorWithoutLocation/expected_results.json | 2 +- .../Solutions/WithDisposable/FakeTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json index a090ed4..eff396a 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/CompileErrorWithoutLocation/expected_results.json @@ -1,6 +1,6 @@ { "version": 3, "status": "error", - "message": "error CS8805: Program using top-level statements must be an executable.", + "message": "FakeTests.cs(31,1): error CS8805: Program using top-level statements must be an executable.", "tests": [] } \ No newline at end of file diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs index 4bfc655..3aa3b5c 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/Solutions/WithDisposable/FakeTests.cs @@ -9,7 +9,7 @@ public class FakeTests : IDisposable public FakeTests() { - _file = File.Open("tmp.txt", FileMode.Create); + _file = File.Open(Path.GetTempFileName(), FileMode.Create); } [Fact]