File: 0002-go-x-sync-0.7.patch

package info (click to toggle)
golang-google-api 0.61.0-6
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 209,156 kB
  • sloc: sh: 183; makefile: 22; python: 4
file content (19 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Reinhard Tartler <siretart@tauware.de>
Last-updated: 2024-05-13
Description: Fix deadlock in test after updating golang.org/x/sync to 0.7.0

Debian-Bug: https://bugs.debian.org/1071038

Index: golang-google-api/support/bundler/bundler_test.go
===================================================================
--- golang-google-api.orig/support/bundler/bundler_test.go
+++ golang-google-api/support/bundler/bundler_test.go
@@ -394,7 +394,7 @@ func TestBundlerTimeBasedFlushDeadlock(t
 	b.BundleByteThreshold = math.MaxInt32
 
 	ctx, cancel := context.WithCancel(context.Background())
-	time.AfterFunc(1*time.Second, cancel)
+	time.AfterFunc(15*time.Second, cancel)
 
 	add := func(i int) {
 		for j := 0; j < iterations; j++ {