diff --git a/build/test/builder/build_step_impl_test.dart b/build/test/builder/build_step_impl_test.dart index 098db68a9..315f6f140 100644 --- a/build/test/builder/build_step_impl_test.dart +++ b/build/test/builder/build_step_impl_test.dart @@ -131,7 +131,7 @@ void main() { expect(aLib.definingCompilationUnit.libraryImports.length, 2); expect( aLib.definingCompilationUnit.libraryImports - .any((import) => import.library.name == 'b'), + .any((import) => import.importedLibrary!.name == 'b'), isTrue); var bLib = await resolver.findLibraryByName('b');