mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-22 23:01:33 +01:00
fix golint issue
This commit is contained in:
parent
d983982d19
commit
8ec94a6d0a
@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
var endpoint string = "10.117.4.142"
|
||||
var endpoint = "10.117.4.142"
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
notaryServer := notarytest.NewNotaryServer(endpoint)
|
||||
|
@ -30,6 +30,8 @@ func currPath() string {
|
||||
}
|
||||
return path.Dir(f)
|
||||
}
|
||||
|
||||
// NewNotaryServer creates a notary server for testing.
|
||||
func NewNotaryServer(endpoint string) *httptest.Server {
|
||||
mux := http.NewServeMux()
|
||||
validRoot := fmt.Sprintf("/v2/%s/notary-demo/busybox/_trust/tuf/", endpoint)
|
||||
|
Loading…
Reference in New Issue
Block a user