Skip to content

Commit

Permalink
chore: fix test with hard coded dart version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Apr 10, 2024
1 parent f352ec6 commit f161511
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/aft/test/model_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@ void main() {
final currentDartVersion = Version.parse(
Platform.version.split(RegExp(r'\s+')).first,
);
final major = currentDartVersion.major;
final minor = currentDartVersion.minor;
final stablePackage = await d.package('stable_pkg').create();
final previewPackage = await d
.package(
'preview_pkg',
sdkConstraint: '^3.3.0-0',
sdkConstraint: '^$major.${minor + 1}.0-0',
)
.create();
expect(
Expand All @@ -133,7 +135,7 @@ void main() {
);
expect(
previewPackage.compatibleWithActiveSdk,
currentDartVersion.isPreRelease,
isFalse,
);
});
});
Expand Down

0 comments on commit f161511

Please sign in to comment.