Support latest pkg:build_verify (dart-lang/pubspec_parse#79)

diff --git a/pkgs/pubspec_parse/pubspec.yaml b/pkgs/pubspec_parse/pubspec.yaml
index ae7a03f..c2be3dc 100644
--- a/pkgs/pubspec_parse/pubspec.yaml
+++ b/pkgs/pubspec_parse/pubspec.yaml
@@ -17,7 +17,7 @@
 
 dev_dependencies:
   build_runner: ^2.0.3
-  build_verify: ^2.0.0
+  build_verify: '>=2.0.0 <4.0.0'
   json_serializable: ^6.0.0
   lints: ^1.0.0
   path: ^1.5.1
diff --git a/pkgs/pubspec_parse/test/ensure_build_test.dart b/pkgs/pubspec_parse/test/ensure_build_test.dart
index d64fa4f..612b837 100644
--- a/pkgs/pubspec_parse/test/ensure_build_test.dart
+++ b/pkgs/pubspec_parse/test/ensure_build_test.dart
@@ -2,6 +2,7 @@
 // for details. All rights reserved. Use of this source code is governed by a
 // BSD-style license that can be found in the LICENSE file.
 
+@Timeout.factor(2)
 @TestOn('vm')
 @Tags(['presubmit-only'])
 import 'package:build_verify/build_verify.dart';