File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -11,29 +11,30 @@ namespace testing {
1111
1212ArchivistFixture::ArchivistFixture () {
1313 std::stringstream stream;
14- stream << flutter::testing::GetCurrentTestName () << " .db" ;
15- archive_file_name_ = fml::paths::JoinPaths (
16- {flutter::testing::GetFixturesPath (), stream.str ()});
14+ stream << " Test" << flutter::testing::GetCurrentTestName () << " .db" ;
15+ archive_file_name_ = stream.str ();
1716}
1817
1918ArchivistFixture::~ArchivistFixture () = default ;
2019
2120const std::string ArchivistFixture::GetArchiveFileName () const {
22- return archive_file_name_;
21+ return fml::paths::JoinPaths (
22+ {flutter::testing::GetFixturesPath (), archive_file_name_});
2323}
2424
2525void ArchivistFixture::SetUp () {
2626 DeleteArchiveFile ();
2727}
2828
2929void ArchivistFixture::TearDown () {
30- // TODO: Tear this down. For now, I am inspecting the files for readability of
31- // schema.
32- // DeleteArchiveFile();
30+ DeleteArchiveFile ();
3331}
3432
3533void ArchivistFixture::DeleteArchiveFile () const {
36- fml::UnlinkFile (archive_file_name_.c_str ());
34+ auto fixtures = flutter::testing::OpenFixturesDirectory ();
35+ if (fml::FileExists (fixtures, archive_file_name_.c_str ())) {
36+ fml::UnlinkFile (fixtures, archive_file_name_.c_str ());
37+ }
3738}
3839
3940} // namespace testing
You can’t perform that action at this time.
0 commit comments