pulumi/sdk/nodejs/cmd/pulumi-language-nodejs
Julien 1203d5bd90
Don't use os.Stdout in tests (#16795)
Some tests were writing directly to os.Stdout, causing noise for other
tests. For `TestRunWithOutputDoesNotMissData` we don't need to write
anything, we only need a slow writer. For `TestNonblockingStdout` we
need to more carefully emulate the behaviour seen with os.Stdout.

We can do this using a named pipe initially opened from Go without
O_NONBLOCK. This ensures that Go thinks this file descriptor is blocking
and does not add the file to its internal poller that handles
non-blocking IO. As previously, we then trick Go by changing the file to
be non-blocking behind its back and trigger the bug.

---------

Co-authored-by: Fraser Waters <fraser@pulumi.com>
2024-07-25 12:14:02 +00:00
..
testdata Add a test of sending primitive values for a resource (#16718) 2024-07-22 21:13:11 +00:00
go.mod Changelog and go.mod updates for v3.126.0 (#16761) 2024-07-23 04:38:13 +00:00
go.sum Bump the go_modules group across 2 directories with 1 update (#16464) 2024-06-28 22:17:40 +00:00
language_test.go Fix race in language conformance tests Log method (#16227) 2024-05-19 17:41:42 +00:00
main.go Detect possible OOM errors when nodejs crashes (#16700) 2024-07-23 16:10:43 +00:00
main_test.go Don't use os.Stdout in tests (#16795) 2024-07-25 12:14:02 +00:00
proxy.go implement engine support for invoke transforms (#16559) 2024-07-11 16:01:44 +00:00
proxy_unix.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
proxy_windows.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00