mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Merge pull request #236 from LK4D4/fix_format_in_test
basicauth: Fix format call in tests
This commit is contained in:
commit
55de037035
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ md5:$apr1$l42y8rex$pOA2VJ0x/0TwaFeAF9nX61`
|
||||||
var skipHtpassword bool
|
var skipHtpassword bool
|
||||||
htfh, err := ioutil.TempFile("", "basicauth-")
|
htfh, err := ioutil.TempFile("", "basicauth-")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Logf("Error creating temp file (%v), will skip htpassword test")
|
t.Logf("Error creating temp file (%v), will skip htpassword test", err)
|
||||||
skipHtpassword = true
|
skipHtpassword = true
|
||||||
} else {
|
} else {
|
||||||
if _, err = htfh.Write([]byte(htpasswdFile)); err != nil {
|
if _, err = htfh.Write([]byte(htpasswdFile)); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue