Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefftree authored May 23, 2023
1 parent d52469d commit 2ff681c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ func TestUpdateSpecLazy(t *testing.T) {

mux := http.NewServeMux()
o := NewOpenAPIService(&s)
if err := o.RegisterOpenAPIVersionedService("/openapi/v2", mux); err != nil {
t.Errorf("Unexpected error in register OpenAPI versioned service: %v", err)
}
o.RegisterOpenAPIVersionedService("/openapi/v2", mux)
server := httptest.NewServer(mux)
defer server.Close()

Expand Down Expand Up @@ -219,9 +217,7 @@ func TestConcurrentReadStaleCache(t *testing.T) {

mux := http.NewServeMux()
o := NewOpenAPIService(&s)
if err := o.RegisterOpenAPIVersionedService("/openapi/v2", mux); err != nil {
t.Errorf("Unexpected error in register OpenAPI versioned service: %v", err)
}
o.RegisterOpenAPIVersionedService("/openapi/v2", mux)
server := httptest.NewServer(mux)
defer server.Close()

Expand Down

0 comments on commit 2ff681c

Please sign in to comment.