Skip to content
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

Replace shared variables for test http server with structure fields #32

Open
gboyvalenkov-bosch opened this issue Sep 8, 2022 · 0 comments
Labels
task Single unit of work

Comments

@gboyvalenkov-bosch
Copy link
Contributor

Currently there are 3 shared variables in http_test_utl.go: failCountBadStatus, failCopyError, corruptFileError. They should be replaced with fields within TestHTTPServer structure, in order to make code more readable and understandable. However this requires revision of http handler functions. Currently only 1 test alias is used for all methods, which implies that handler function is registered only once.
Since this function is a pointer receiver of TestHTTPServer, it uses the fields from the first created instance, which makes it impossible to modify behavior.

@e-grigorov e-grigorov added the task Single unit of work label Sep 9, 2022
@konstantina-gramatova konstantina-gramatova added this to the M3 milestone Sep 29, 2022
@k-gostev k-gostev removed this from the M3 milestone May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Single unit of work
Projects
Status: Todo
Development

No branches or pull requests

4 participants