Skip to content

Commit b7608c5

Browse files
committed
Work around the failure here
1 parent 618bf0f commit b7608c5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/mono/wasm/Wasm.Build.Tests/WasmSdkBasedProjectProvider.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,14 @@ private void AssertBundle(AssertBundleOptions assertOptions)
180180

181181
public void AssertWasmSdkBundle(Configuration config, MSBuildOptions buildOptions, bool isUsingWorkloads, bool? isNativeBuild = null, bool? wasmFingerprintDotnetJs = null, string? buildOutput = null)
182182
{
183-
if (isUsingWorkloads && buildOutput is not null)
183+
if ((isUsingWorkloads && buildOutput is not null)
184+
&& (_defaultTargetFramework == BuildTestBase.DefaultTargetFramework))
184185
{
185186
// In no-workload case, the path would be from a restored nuget
186-
ProjectProviderBase.AssertRuntimePackPath(buildOutput, buildOptions.TargetFramework ?? _defaultTargetFramework, buildOptions.RuntimeType);
187-
}
187+
// FIXME: if the _defaultTargetFramework is not the same as the the DefaultTargetFramework
188+
// we skup the RuntimePath check as the path would be from a restored nuget
189+
AssertRuntimePackPath(buildOutput, buildOptions.TargetFramework ?? _defaultTargetFramework, buildOptions.RuntimeType);
190+
188191
AssertBundle(config, buildOptions, isUsingWorkloads, isNativeBuild, wasmFingerprintDotnetJs);
189192
}
190193

0 commit comments

Comments
 (0)