mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-09 21:19:04 +01:00
fix go vet error
This commit is contained in:
parent
5ea0e50f0f
commit
1e599833fa
@ -85,7 +85,7 @@ func TestCommonConfig(t *testing.T) {
|
|||||||
t.Errorf("Expected TokenEndpoint: %s, fact: %s", token, TokenEndpoint())
|
t.Errorf("Expected TokenEndpoint: %s, fact: %s", token, TokenEndpoint())
|
||||||
}
|
}
|
||||||
if LogLevel() != loglevel {
|
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")
|
os.Setenv("DATABASE", "sqlite")
|
||||||
err = Reload()
|
err = Reload()
|
||||||
|
@ -139,6 +139,6 @@ func TestProjectCreationRestrict(t *testing.T) {
|
|||||||
|
|
||||||
func TestInitAdminPassword(t *testing.T) {
|
func TestInitAdminPassword(t *testing.T) {
|
||||||
if InitialAdminPassword() != adminPassword {
|
if InitialAdminPassword() != adminPassword {
|
||||||
t.Errorf("Expected adminPassword: %s, in fact: %s", adminPassword, InitialAdminPassword)
|
t.Errorf("Expected adminPassword: %s, in fact: %s", adminPassword, InitialAdminPassword())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user