Skip to content

Commit a8eb5aa

Browse files
Fix tests
1 parent c7af23e commit a8eb5aa

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

pkgs/jnigen/test/test_util/test_util.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -172,38 +172,11 @@ const bindingTests = [
172172
];
173173

174174
const registrantName = 'runtime_test_registrant.dart';
175-
const replicaName = 'runtime_test_registrant_dartonly_generated.dart';
176-
177-
void warnIfRuntimeTestsAreOutdated() {
178-
final runtimeTests = join('test', 'generated_runtime_test.dart');
179-
if (!File(runtimeTests).existsSync()) {
180-
log.fatal('Runtime test files not found. To run binding '
181-
'runtime tests, please generate them by running '
182-
'`dart run tool/generate_runtime_tests.dart`');
183-
}
184-
const regenInstr = 'Please run `dart run tool/generate_runtime_tests.dart` '
185-
'and try again.';
186-
for (var testName in bindingTests) {
187-
final registrant = File(join('test', testName, registrantName));
188-
final replica = File(join('test', testName, replicaName));
189-
if (!replica.existsSync()) {
190-
log.fatal(
191-
'One or more generated runtime tests do not exist. $regenInstr',
192-
);
193-
}
194-
if (replica.lastModifiedSync().isBefore(registrant.lastModifiedSync())) {
195-
log.fatal(
196-
'One or more generated runtime tests are not up-to-date. $regenInstr',
197-
);
198-
}
199-
}
200-
}
201175

202176
/// Verifies if locally built dependencies (currently `ApiSummarizer`)
203177
/// are up-to-date.
204178
Future<void> checkLocallyBuiltDependencies() async {
205179
await failIfSummarizerNotBuilt();
206-
warnIfRuntimeTestsAreOutdated();
207180
}
208181

209182
void generateAndCompare(

0 commit comments

Comments
 (0)