Remove globalQuiet and globalConfigDir global variables (#3830)

This commit is contained in:
Bala FA
2017-03-03 03:51:30 +05:30
committed by Harshavardhana
parent 208dd15245
commit 98d17d2a97
18 changed files with 178 additions and 364 deletions

View File

@@ -358,8 +358,8 @@ func TestServerListenAndServeTLS(t *testing.T) {
if err != nil {
t.Fatal(err)
}
certFile := mustGetCertFile()
keyFile := mustGetKeyFile()
certFile := getCertFile()
keyFile := getKeyFile()
defer os.RemoveAll(certFile)
defer os.RemoveAll(keyFile)
@@ -420,8 +420,8 @@ func TestServerListenAndServeTLS(t *testing.T) {
// generateTestCert creates a cert and a key used for testing only
func generateTestCert(host string) error {
certPath := mustGetCertFile()
keyPath := mustGetKeyFile()
certPath := getCertFile()
keyPath := getKeyFile()
priv, err := rsa.GenerateKey(rand.Reader, 2048)
if err != nil {
return err