Skip to content

Commit 09b4049

Browse files
committed
Fix failing interop tests
This is a workaround for a breaking change in the .NET 9 SDK, as documented at dotnet/sdk#44940.
1 parent 791ab52 commit 09b4049

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nerdbank-streams/src/tests/MultiplexingStream.Interop.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MultiplexingStream } from '../MultiplexingStream'
66
;[1, 2, 3].forEach(protocolMajorVersion => {
77
describe(`MultiplexingStream v${protocolMajorVersion} (interop) `, () => {
88
const projectPath = `${__dirname}/../../../../test/Nerdbank.Streams.Interop.Tests`
9+
const exePath = `${__dirname}/../../../../bin/Nerdbank.Streams.Interop.Tests/Debug/net8.0/Nerdbank.Streams.Interop.Tests.exe`
910
let mx: MultiplexingStream
1011
let proc: ChildProcess | null
1112
let procExited: Deferred<any>
@@ -30,7 +31,7 @@ import { MultiplexingStream } from '../MultiplexingStream'
3031
}
3132
}, 20000) // leave time for package restore and build
3233
beforeEach(async () => {
33-
proc = spawn('dotnet', ['run', '--no-build', '--project', projectPath, '--', protocolMajorVersion.toString()], spawnOptions.env as any)
34+
proc = spawn(exePath, [protocolMajorVersion.toString()], spawnOptions.env as any)
3435
try {
3536
procExited = new Deferred<any>()
3637
proc.once('error', err => procExited.resolve(err))

0 commit comments

Comments
 (0)