fixed temp dir issues w/ rev db (#859)

This commit is contained in:
Bill Thorp 2018-12-13 21:24:35 -05:00 committed by GitHub
parent 020b283b33
commit c17a6ba584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -361,7 +361,7 @@ func TestNewRevocationExt(t *testing.T) {
}
func TestRevocationDB_Get(t *testing.T) {
tmp, err := ioutil.TempDir("", os.TempDir())
tmp, err := ioutil.TempDir("", "TestRevocationDB_Get")
defer func() { _ = os.RemoveAll(tmp) }()
keys, chain, err := newCertChain(2)
@ -407,7 +407,7 @@ func TestRevocationDB_Get(t *testing.T) {
}
func TestRevocationDB_Put(t *testing.T) {
tmp, err := ioutil.TempDir("", os.TempDir())
tmp, err := ioutil.TempDir("", "TestRevocationDB_Put")
defer func() { _ = os.RemoveAll(tmp) }()
keys, chain, err := newCertChain(2)
@ -560,7 +560,7 @@ func TestParseExtensions(t *testing.T) {
_, unrelatedChain, err := newCertChain(1)
assert.NoError(t, err)
tmp, err := ioutil.TempDir("", os.TempDir())
tmp, err := ioutil.TempDir("", "TestParseExtensions")
if err != nil {
t.FailNow()
}

View File

@ -184,7 +184,7 @@ func TestNewServerOptions(t *testing.T) {
done, _, fi, _ := tempIdentity(t)
defer done()
tmp, err := ioutil.TempDir(os.TempDir(), "")
tmp, err := ioutil.TempDir("", "TestNewServerOptions")
if !assert.NoError(t, err) {
t.FailNow()
}