mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 04:51:22 +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())
|
||||
}
|
||||
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()
|
||||
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user