Skip to content

Commit cde97d6

Browse files
[tests] BuildLibraryWhichUsesResources should be NonParallelizable (#4979)
Context: https://build.azdo.io/3947655 Since 396aca1 switched the `Xamarin.Android.Build.Tests.BuildTest.BuildLibraryWhichUsesResources` test to use AndroidX, it has been randomly failing with: (Restore target) -> /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/NuGet.targets(124,5): error : Could not find file '/Users/runner/work/1/s/packages/xamarin.androidx.migration/1.0.0.1/c0hredtr.mkk'. I think this is happening because the test is parameterized and AndroidX has a large dependency tree. `[NonParallelizable]` should solve the issue.
1 parent a963c30 commit cde97d6

File tree

1 file changed

+1
-0
lines changed
  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests

1 file changed

+1
-0
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ public void CheckLintConfigMerging ()
19051905
}
19061906

19071907
[Test]
1908+
[NonParallelizable] // fails on NuGet restore
19081909
[Category ("dotnet")]
19091910
/// <summary>
19101911
/// Reference https://bugzilla.xamarin.com/show_bug.cgi?id=29568

0 commit comments

Comments
 (0)