Skip to content

Commit 93eb607

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@ 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+
// 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);
187190
}
188191
AssertBundle(config, buildOptions, isUsingWorkloads, isNativeBuild, wasmFingerprintDotnetJs);
189192
}

0 commit comments

Comments
 (0)