public async Task FillErrorsLogAndUploadTest() { DataAccess spec = new DataAccessClass(); try { var cf = _sliFiles[0]; await FileManager.CopyAndUpload(cf, "SLI-2"); // make file busy spec.Open(cf, OpenMode.dReadWrite); await FileManager.CopyAndUpload(cf, "SLI-2"); var lst = await FileManager.ShowFilesWithErrors(); Assert.IsTrue(lst.Any()); spec.Close(); await FileManager.UploadFilesWithErrors(); lst = await FileManager.ShowFilesWithErrors(); Assert.IsFalse(lst.Any()); } finally { if (spec.IsOpen) { spec.Close(); } } }