diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-12-19 19:46:54 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-12-20 05:06:55 +0000 |
commit | 860c9c0b8df6c0a2849fdd274a0a9f142cba3ea5 (patch) | |
tree | 7153e5f2737e06192db3bc08843ca022b9b8124c | |
parent | 5a72bad87ac1152aecd39f7fe1eece88a23b595b (diff) | |
download | go-860c9c0b8df6c0a2849fdd274a0a9f142cba3ea5.tar.gz go-860c9c0b8df6c0a2849fdd274a0a9f142cba3ea5.zip |
misc/cgo/testcshared: wait up to 1 second in main2.c
Wait longer in case the system is heavily loaded.
Fixes #18324.
Change-Id: If9a6da1cf32d0321302d244ee24fb3f80e54489d
Reviewed-on: https://go-review.googlesource.com/34653
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r-- | misc/cgo/testcshared/main2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/testcshared/main2.c b/misc/cgo/testcshared/main2.c index 9752006f79..6e8bf141ca 100644 --- a/misc/cgo/testcshared/main2.c +++ b/misc/cgo/testcshared/main2.c @@ -21,7 +21,7 @@ int main(void) { // The descriptor will be initialized in a thread, so we have to // give a chance to get opened. - for (i = 0; i < 100; i++) { + for (i = 0; i < 1000; i++) { n = read(fd, buf, sizeof buf); if (n >= 0) break; |