Skip to content

Commit

Permalink
Fix (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruskakimov authored Oct 3, 2021
1 parent dc97f8e commit f17d49d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 16 deletions.
12 changes: 8 additions & 4 deletions test/layer_group/sync_layers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ List<int> frameCounts(SceneLayer layer) {

void main() {
tearDown(() async {
await deleteFilesWhere(
Directory.current,
(path) => path.contains('image') && path.endsWith('.png'),
);
try {
await deleteFilesWhere(
Directory.current,
(path) => path.contains('image') && path.endsWith('.png'),
);
} catch (e) {
print(e);
}
});

group('mergeGroups', () {
Expand Down
12 changes: 8 additions & 4 deletions test/reel_stack_model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ ReelStackModel reelStack(List<SceneLayer> layers) => ReelStackModel(

void main() {
tearDown(() async {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
try {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
} catch (e) {
print(e);
}
});

group('ReelStackModel', () {
Expand Down
12 changes: 8 additions & 4 deletions test/scene_layer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ import 'package:mooltik/drawing/data/frame/frame.dart';

void main() async {
tearDown(() async {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
try {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
} catch (e) {
print(e);
}
});

final snapshotA = await pngRead(File('./test/test_images/rabbit_black.png'));
Expand Down
12 changes: 8 additions & 4 deletions test/scene_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ import 'package:mooltik/drawing/data/frame/frame.dart';

void main() async {
tearDown(() async {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
try {
await deleteFilesWhere(
Directory.current,
(path) => path.endsWith('.png'),
);
} catch (e) {
print(e);
}
});

final imageA = await pngRead(File('./test/test_images/rabbit_black.png'));
Expand Down

0 comments on commit f17d49d

Please sign in to comment.