-
-
Notifications
You must be signed in to change notification settings - Fork 63
Fix issue with randomly failing tests to due parallel execution #872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9959053
552fa8b
bd65c0c
f4165f9
65b9db4
ea1ee5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,7 +113,8 @@ public void DetermineSettingsFilePath_Returns_Default_When_Output_Path_Is_Null() | |
| public async Task WriteRefitterSettingsFile_Creates_File_With_Default_Path() | ||
| { | ||
| // Arrange | ||
| var tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); | ||
| var folder = Path.GetDirectoryName(GetType().Assembly.Location) ?? Path.GetTempPath(); | ||
| var tempDir = Path.Combine(folder, Guid.NewGuid().ToString()); | ||
|
Comment on lines
+116
to
+117
|
||
| Directory.CreateDirectory(tempDir); | ||
| var originalDir = Directory.GetCurrentDirectory(); | ||
|
|
||
|
|
@@ -268,7 +269,7 @@ public async Task WriteRefitterSettingsFile_Creates_File_When_ContractsOutputPat | |
|
|
||
| var content = await File.ReadAllTextAsync(settingsFile); | ||
| content.Should().Contain("ContractsNamespace"); | ||
|
|
||
| // Verify the deserialized settings contain the correct contracts path | ||
| var deserializedSettings = Serializer.Deserialize<RefitGeneratorSettings>(content); | ||
| deserializedSettings.ContractsOutputFolder.Should().Be(contractsDir); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: christianhelle/refitter
Length of output: 49
🏁 Script executed:
Repository: christianhelle/refitter
Length of output: 6271
🏁 Script executed:
Repository: christianhelle/refitter
Length of output: 3717
Update Refit.HttpClientFactory to version 9.0.2 for consistency.
Adding
Refit.HttpClientFactoryto the embedded project template is good for verifying generated code compiles. However, version 8.0.0 creates an inconsistency: all test projects and examples (MinimalApi, MSBuild, MauiExample, MultipleFiles, ConsoleApp, and SourceGenerator.Tests) use version 9.0.2. The embedded template should match to ensure generated code is tested against the same version used across the test suite. Change toVersion="9.0.2".🤖 Prompt for AI Agents