Skip to content

Commit c141234

Browse files
authored
Fix tests (#1052)
1 parent 335ea7c commit c141234

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

pkgs/native_assets_builder/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.1
2+
3+
- Fix test.
4+
15
## 0.6.0
26

37
- **Breaking change** Completely rewritten API in `native_assets_cli`.

pkgs/native_assets_builder/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: native_assets_builder
22
description: >-
33
This package is the backend that invokes `build.dart` hooks.
4-
version: 0.6.0
4+
version: 0.6.1
55
repository: https://github.com/dart-lang/native/tree/main/pkgs/native_assets_builder
66

77
environment:

pkgs/native_assets_builder/test/build_runner/build_runner_dry_run_test.dart

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ void main() async {
4444
expect(dryRunAsset.id, buildAsset.id);
4545
// The build runner expands NativeCodeAssets to all architectures.
4646
expect(buildAsset.file, isNotNull);
47-
expect(dryRunAsset.file, isNull);
4847
if (dryRunAsset is NativeCodeAssetImpl &&
4948
buildAsset is NativeCodeAssetImpl) {
5049
expect(dryRunAsset.architecture, isNotNull);

pkgs/native_assets_cli/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.2
2+
3+
- Fix test.
4+
15
## 0.5.1
26

37
- Update documentation about providing `NativeCodeAsset.file` in dry runs.

pkgs/native_assets_cli/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: >-
44
native assets CLI.
55
66
# Note: Bump BuildConfig.version and BuildOutput.version on breaking changes!
7-
version: 0.5.1
7+
version: 0.5.2
88
repository: https://github.com/dart-lang/native/tree/main/pkgs/native_assets_cli
99

1010
topics:

pkgs/native_assets_cli/test/example/native_add_library_test.dart

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ void main() async {
7474
final dependencies = buildOutput.dependencies;
7575
if (dryRun) {
7676
expect(assets.length, greaterThanOrEqualTo(1));
77-
expect(assets.first.file, isNull);
7877
expect(dependencies, <Uri>[]);
7978
} else {
8079
expect(assets.length, 1);

0 commit comments

Comments
 (0)