You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: