Skip to content

Commit

Permalink
#107 adjusting tests (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mageddo authored Mar 31, 2019
1 parent 135c543 commit f478bd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestFlagValuesFromConf(t *testing.T) {


func TestLogLevel_DefaultValue(t *testing.T) {
assert.Equal(t, logging.DEBUG, LogLevel())
assert.Equal(t, logging.INFO, LogLevel())
}

func TestLogLevel_ReadFromConfig(t *testing.T) {
Expand Down
3 changes: 3 additions & 0 deletions resolvconf/resolvconf_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package resolvconf

import (
"github.com/mageddo/dns-proxy-server/cache/store"
"io/ioutil"
"fmt"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -207,6 +208,8 @@ nameserver 9.9.9.9
t.Error(err)
}

store.GetInstance().Clear()

// act
hostname := GetHostname("site1.com")

Expand Down

0 comments on commit f478bd5

Please sign in to comment.