-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[YUNIKORN-2650]Complete or remove web_server_test#TestProxy #853
Conversation
pkg/webtest/web_server_test.go
Outdated
@@ -80,5 +80,43 @@ func TestWebServer(t *testing.T) { | |||
} | |||
|
|||
func TestProxy(t *testing.T) { | |||
mux := http.NewServeMux() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case is duplicate to TestWebServer
, so I prefer to remove TestProxy
instead of having many duplicate code. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I think we can remove TestProxy
. No problem, I'll make this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@0lai0 please fix the linter warning. |
Test failure is unrelated. |
"make test" & "make lint" passed locally, will merge soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
What is this PR for?
This PR completes web_server_test#TestProxy.
What type of PR is it?
Todos
What is the Jira issue?
[YUNIKORN-2650]
How should this be tested?
It has been checked locally by make test.
Screenshots (if appropriate)
N/A
Questions:
N/A