|
@@ -368,6 +368,10 @@ func TestHttpsInsecure(t *testing.T) {
|
368
|
368
|
t.Fatal("creating temp dir: ", err)
|
369
|
369
|
}
|
370
|
370
|
defer os.RemoveAll(tempdir)
|
|
371
|
+
|
|
372
|
+ // pprof writes to $HOME/pprof by default which is not necessarily
|
|
373
|
+ // writeable (e.g. on a Debian buildd) so set $HOME to something we
|
|
374
|
+ // know we can write to for the duration of the test.
|
371
|
375
|
os.Setenv(homeEnv(), tempdir)
|
372
|
376
|
defer os.Setenv(homeEnv(), saveHome)
|
373
|
377
|
|