Skip to content

Commit 8e964db

Browse files
committed
fixes
1 parent 05fb5b8 commit 8e964db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Test/L0/Plugin/TarUtilsL0.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Agent.Sdk;
66
using Agent.Plugins.PipelineCache;
77
using System.Diagnostics;
8+
using System.IO;
89

910
namespace Microsoft.VisualStudio.Services.Agent.Tests.PipelineCaching
1011
{
@@ -26,7 +27,10 @@ public async Task UnavailableProcessDependency_ThrowsNiceError()
2627
public async Task Tar_ArchiveFilesToTarAsync_ThrowsDirectoryNotFoundException()
2728
{
2829
await Assert.ThrowsAsync<DirectoryNotFoundException>(async () =>
29-
await TarUtils.ArchiveFilesToTarAsync(new AgentTaskPluginExecutionContext(), "nonexistentpath", CancellationToken.None)
30+
await TarUtils.ArchiveFilesToTarAsync(
31+
new AgentTaskPluginExecutionContext(),
32+
Path.Combine(Environment.CurrentDirectory, "nonexistentpath"),
33+
CancellationToken.None)
3034
);
3135
}
3236
}

0 commit comments

Comments
 (0)