소스 검색

add a comment explaining the setting of $HOME in TestHttpsInsecure (#306)

Michael Hudson-Doyle 7 년 전
부모
커밋
f6c7e790d0
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      internal/driver/fetch_test.go

+ 4
- 0
internal/driver/fetch_test.go 파일 보기

@@ -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