Skip to content

Commit

Permalink
Skip random test until issue dart-lang#85 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kekavc24 committed May 31, 2024
1 parent c2d5847 commit 8cc8580
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions test/random_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ void main() {
const modificationsPerRound = 1000;

for (var i = 0; i < roundsOfTesting; i++) {
test('testing with randomly generated modifications: test $i', () {
final editor = YamlEditor('''
test(
'testing with randomly generated modifications: test $i',
() {
final editor = YamlEditor('''
name: yaml_edit
description: A library for YAML manipulation with comment and whitespace preservation.
version: 0.0.1-dev
Expand All @@ -42,13 +44,15 @@ dev_dependencies:
test: ^1.14.4
''');

for (var j = 0; j < modificationsPerRound; j++) {
expect(
() => generator.performNextModification(editor),
returnsNormally,
);
}
});
for (var j = 0; j < modificationsPerRound; j++) {
expect(
() => generator.performNextModification(editor),
returnsNormally,
);
}
},
skip: 'Remove once issue #85 is fixed',
);
}
}

Expand Down

0 comments on commit 8cc8580

Please sign in to comment.