mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Fixing broken OSX unit test caused by inability to hide files on unix (#41)
This commit is contained in:
@@ -70,10 +70,6 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
|
||||
// Open the requested file for reading/writing, creating one if it doesn't exist
|
||||
fileStream = new FileStream(fileName, FileMode.OpenOrCreate, accessMethod, FileShare.ReadWrite,
|
||||
bufferLength, false /*don't use asyncio*/);
|
||||
|
||||
// make file hidden
|
||||
FileInfo fileInfo = new FileInfo(fileName);
|
||||
fileInfo.Attributes |= FileAttributes.Hidden;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -76,9 +76,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution.DataStorage
|
||||
// ... The file should exist
|
||||
FileInfo fileInfo = new FileInfo(fileName);
|
||||
Assert.True(fileInfo.Exists);
|
||||
|
||||
// ... The file should be marked as hidden
|
||||
Assert.True((fileInfo.Attributes & FileAttributes.Hidden) != 0);
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user