mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -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
|
// Open the requested file for reading/writing, creating one if it doesn't exist
|
||||||
fileStream = new FileStream(fileName, FileMode.OpenOrCreate, accessMethod, FileShare.ReadWrite,
|
fileStream = new FileStream(fileName, FileMode.OpenOrCreate, accessMethod, FileShare.ReadWrite,
|
||||||
bufferLength, false /*don't use asyncio*/);
|
bufferLength, false /*don't use asyncio*/);
|
||||||
|
|
||||||
// make file hidden
|
|
||||||
FileInfo fileInfo = new FileInfo(fileName);
|
|
||||||
fileInfo.Attributes |= FileAttributes.Hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -76,9 +76,6 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.QueryExecution.DataStorage
|
|||||||
// ... The file should exist
|
// ... The file should exist
|
||||||
FileInfo fileInfo = new FileInfo(fileName);
|
FileInfo fileInfo = new FileInfo(fileName);
|
||||||
Assert.True(fileInfo.Exists);
|
Assert.True(fileInfo.Exists);
|
||||||
|
|
||||||
// ... The file should be marked as hidden
|
|
||||||
Assert.True((fileInfo.Attributes & FileAttributes.Hidden) != 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user