File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5
5
using Agent . Sdk ;
6
6
using Agent . Plugins . PipelineCache ;
7
7
using System . Diagnostics ;
8
+ using System . IO ;
8
9
9
10
namespace Microsoft . VisualStudio . Services . Agent . Tests . PipelineCaching
10
11
{
@@ -26,7 +27,10 @@ public async Task UnavailableProcessDependency_ThrowsNiceError()
26
27
public async Task Tar_ArchiveFilesToTarAsync_ThrowsDirectoryNotFoundException ( )
27
28
{
28
29
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 )
30
34
) ;
31
35
}
32
36
}
You can’t perform that action at this time.
0 commit comments