File tree Expand file tree Collapse file tree
integration_test/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'dart:io' ;
22
3+ import 'package:path/path.dart' as p;
4+
35class DatabaseFileHelper {
46 static const _walExtension = '-wal' ;
57 static const _shmExtension = '-shm' ;
@@ -9,9 +11,9 @@ class DatabaseFileHelper {
911 /// Swallows any [FileSystemException] to ensure test teardown doesn't crash.
1012 static Future <void > deleteDatabaseFiles ({required String directoryPath, required String dbName}) async {
1113 try {
12- await _deleteFile ('$ directoryPath /$ dbName ' );
13- await _deleteFile ('$ directoryPath /$ dbName $_walExtension ' );
14- await _deleteFile ('$ directoryPath /$ dbName $_shmExtension ' );
14+ await _deleteFile (p. join ( directoryPath, dbName) );
15+ await _deleteFile (p. join (directoryPath, '$ dbName $_walExtension ') );
16+ await _deleteFile (p. join (directoryPath, '$ dbName $_shmExtension ') );
1517 } catch (_) {
1618 // Ignore cleanup errors during test teardown
1719 }
You can’t perform that action at this time.
0 commit comments