summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Young <gyoung@gitlab.com>2019-06-27 09:40:14 +0100
committerGrant Young <gyoung@gitlab.com>2019-06-27 09:40:14 +0100
commit8eee62462d9ca50c9844d24a9ed04e3077d15eb7 (patch)
treec852195e9a2156e5e0380b4177233ec897e41700
parent9e40bd0d4a2a8197427ad2eb122d081bfe21252f (diff)
downloadgitlab-ce-grantyoung-52703-project-archive-compare-qa.tar.gz
Fix qa api client class so it stores root's token as env var againgrantyoung-52703-project-archive-compare-qa
Incoming changes to support specific users stopped storing the token as an env var for the default root user meaning tests had to recreate it everytime.
-rw-r--r--qa/qa/runtime/api/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/runtime/api/client.rb b/qa/qa/runtime/api/client.rb
index 5506da3e9f6..663be27a849 100644
--- a/qa/qa/runtime/api/client.rb
+++ b/qa/qa/runtime/api/client.rb
@@ -20,7 +20,7 @@ module QA
# you can set the environment variable GITLAB_QA_ACCESS_TOKEN
# to use a specific access token rather than create one from the UI
# unless a specific user has been passed
- @user.nil? && Runtime::Env.personal_access_token ? Runtime::Env.personal_access_token : create_personal_access_token
+ @user.nil? ? Runtime::Env.personal_access_token ||= create_personal_access_token : create_personal_access_token
end
end