mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added async factory to VFSTests, so deletion can be awaited
This commit is contained in:
parent
165b857709
commit
f8d692afd0
@ -20,16 +20,21 @@ namespace Wabbajack.VirtualFileSystem.Test
|
||||
private readonly ITestOutputHelper _helper;
|
||||
private WorkQueue Queue { get; }
|
||||
|
||||
public VFSTests(ITestOutputHelper helper)
|
||||
private VFSTests(ITestOutputHelper helper)
|
||||
{
|
||||
_helper = helper;
|
||||
Utils.LogMessages.Subscribe(f => _helper.WriteLine(f.ShortDescription));
|
||||
VFS_TEST_DIR.DeleteDirectory();
|
||||
VFS_TEST_DIR.CreateDirectory();
|
||||
Queue = new WorkQueue();
|
||||
context = new Context(Queue);
|
||||
}
|
||||
|
||||
public static async Task<VFSTests> Factory(ITestOutputHelper helper)
|
||||
{
|
||||
await VFS_TEST_DIR.DeleteDirectory();
|
||||
VFS_TEST_DIR.CreateDirectory();
|
||||
return new VFSTests(helper);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task FilesAreIndexed()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user