Skip to content

Commit

Permalink
Fix failing interop tests
Browse files Browse the repository at this point in the history
This is a workaround for a breaking change in the .NET 9 SDK, as documented at dotnet/sdk#44940.
  • Loading branch information
AArnott committed Nov 19, 2024
1 parent 791ab52 commit 09b4049
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { MultiplexingStream } from '../MultiplexingStream'
;[1, 2, 3].forEach(protocolMajorVersion => {
describe(`MultiplexingStream v${protocolMajorVersion} (interop) `, () => {
const projectPath = `${__dirname}/../../../../test/Nerdbank.Streams.Interop.Tests`
const exePath = `${__dirname}/../../../../bin/Nerdbank.Streams.Interop.Tests/Debug/net8.0/Nerdbank.Streams.Interop.Tests.exe`
let mx: MultiplexingStream
let proc: ChildProcess | null
let procExited: Deferred<any>
Expand All @@ -30,7 +31,7 @@ import { MultiplexingStream } from '../MultiplexingStream'
}
}, 20000) // leave time for package restore and build
beforeEach(async () => {
proc = spawn('dotnet', ['run', '--no-build', '--project', projectPath, '--', protocolMajorVersion.toString()], spawnOptions.env as any)
proc = spawn(exePath, [protocolMajorVersion.toString()], spawnOptions.env as any)
try {
procExited = new Deferred<any>()
proc.once('error', err => procExited.resolve(err))
Expand Down

0 comments on commit 09b4049

Please sign in to comment.