Skip to content

Commit

Permalink
fix spell erro and change notations
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmy77 committed Feb 13, 2025
1 parent 4604728 commit 4a64cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Hosts/Hosts.FuzzTests/FuzzTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public static void FuzzWriteAsync(ReadOnlySpan<byte> data)
_elevationHelper = new Mock<IElevationHelper>();
_elevationHelper.Setup(m => m.IsElevated).Returns(true);

// cause no content parse process in writeasync we won't fuzz content in hosts file.
var fileSystem = new CustomMockFileSystem();
var service = new HostsService(fileSystem, _userSettings.Object, _elevationHelper.Object);

string input = System.Text.Encoding.UTF8.GetString(data);
// Since the WriteAsync method does not involve content parsing, we won't fuzz the additionalLines in the hosts file.
string additionalLines = " ";
if (input.Length <= 2)
{
Expand Down

0 comments on commit 4a64cfa

Please sign in to comment.