diff --git a/test/integration_tests/app.py b/test/integration_tests/app.py
index 97c1aed2a8fc33bef44ae5f84ef9b9cbed34aa49..f5ad16b5d8b8324b4067edc9dc0d8f86ebfdb3c5 100644
--- a/test/integration_tests/app.py
+++ b/test/integration_tests/app.py
@@ -57,16 +57,15 @@ def logout():
         return redirect("/")
 
 @oauth_authorized.connect
-def redirect_to_next_url(blueprint, token):
+def save_token(blueprint, token):
     # set OAuth token in the token storage backend
     blueprint.token = token
 
 @oauth_error.connect
-def asdasd(blueprint, **error):
-    # set OAuth token in the token storage backend
+def save_error(blueprint, **error):
+    # set error in the token storage backend
     blueprint.error = error
 
 if __name__ == "__main__":
     app.run()
 
-