fix go vet error

This commit is contained in:
Tan Jiang 2016-11-16 21:44:15 +08:00
parent 5ea0e50f0f
commit 1e599833fa
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ func TestCommonConfig(t *testing.T) {
t.Errorf("Expected TokenEndpoint: %s, fact: %s", token, TokenEndpoint())
}
if LogLevel() != loglevel {
t.Errorf("Expected LogLevel: %s, fact: %s", loglevel, LogLevel)
t.Errorf("Expected LogLevel: %s, fact: %s", loglevel, LogLevel())
}
os.Setenv("DATABASE", "sqlite")
err = Reload()

View File

@ -139,6 +139,6 @@ func TestProjectCreationRestrict(t *testing.T) {
func TestInitAdminPassword(t *testing.T) {
if InitialAdminPassword() != adminPassword {
t.Errorf("Expected adminPassword: %s, in fact: %s", adminPassword, InitialAdminPassword)
t.Errorf("Expected adminPassword: %s, in fact: %s", adminPassword, InitialAdminPassword())
}
}