Skip to content

Commit e2e6ff6

Browse files
committed
PR comments
1 parent ea949ba commit e2e6ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.ComponentDetection.Detectors.Tests/GoCLIParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ private static IComponentStream CreateComponentStream(string location)
318318
{
319319
var mock = new Mock<IComponentStream>();
320320
mock.Setup(s => s.Location).Returns(location);
321-
mock.Setup(s => s.Stream).Returns(new MemoryStream(Encoding.UTF8.GetBytes("module test")));
322321
return mock.Object;
323322
}
324323

@@ -381,6 +380,7 @@ private void SetupGoListCommand(string stdOut, int exitCode = 0, string stdErr =
381380
"go",
382381
null,
383382
It.IsAny<DirectoryInfo>(),
383+
It.IsAny<CancellationToken>(),
384384
It.Is<string[]>(args => args.Contains("list") && args.Contains("-m") && args.Contains("-json") && args.Contains("all"))))
385385
.ReturnsAsync(new CommandLineExecutionResult
386386
{

0 commit comments

Comments
 (0)