Skip to content

Commit 680946e

Browse files
committed
Harden rewind test path construction
Use Path.Join so a rooted file name cannot discard the E2E working directory. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 91a7e2ab-88a5-4365-accf-cbea1e1391e9
1 parent da4a36a commit 680946e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dotnet/test/E2E/RewindE2ETests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class RewindE2ETests(E2ETestFixture fixture, ITestOutputHelper output)
1818
[Fact]
1919
public async Task Should_Restore_Tracked_File_And_Conversation()
2020
{
21-
var filePath = Path.Combine(Ctx.WorkDir, FileName);
21+
var filePath = Path.Join(Ctx.WorkDir, FileName);
2222
await using var session = await CreateSessionAsync(new SessionConfig
2323
{
2424
Model = "claude-sonnet-4.5",

0 commit comments

Comments
 (0)