Revert "[TESTS] MockVariable temporarily replaces a global value"

This reverts commit f9618b8896.
This commit is contained in:
Earl Warren 2023-08-07 16:14:35 +02:00
parent 2f6b7ce91a
commit 149cd865ea
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -16,11 +16,3 @@ func RedirectURL(resp http.ResponseWriter) string {
func IsNormalPageCompleted(s string) bool {
return strings.Contains(s, `<footer class="page-footer"`) && strings.Contains(s, `</html>`)
}
func MockVariable[T any](variable *T, mock T) func() {
original := *variable
*variable = mock
return func() {
*variable = original
}
}