-
Notifications
You must be signed in to change notification settings - Fork 205
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
t: Extract helper for client user agent initialization #3414
Conversation
9dcd0bc
to
fd20452
Compare
Codecov Report
@@ Coverage Diff @@
## master #3414 +/- ##
==========================================
+ Coverage 95.54% 95.58% +0.04%
==========================================
Files 362 363 +1
Lines 31506 31454 -52
==========================================
- Hits 30101 30065 -36
+ Misses 1405 1389 -16
Continue to review full report at Codecov.
|
8a88249
to
67ea7d2
Compare
Increase circleCI timeout to be bigger than the sum of the number of retries times the timeout for a single test run while still keeping the timeout for a single test run higher than the test module internal timeout.
67ea7d2
to
865bacb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR needs a better name. Like Unify use of OpenQA::Client with Test:Mojo
. Otherwise it sounds like it's about tests for the client.
That said, I like it
ok, updated the PR description to use the actual git commit subject message from the last commit because this one describes the most important, relevant change for this PR. The other changes are merely trivial things going along with it. I have a specific question. Right now I named the new helper "client" but I wonder if the test code reads nicely with this name. Are you ok with the choice or have a better idea? |
I was pondering that but couldn't think of a better name. I think if we use it consistently as |
|
||
# setup test application with API access | ||
# note: Test::Mojo looses its app when setting a new ua (see https://github.com/kraih/mojo/issues/598). | ||
sub client { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have preferred adding this to the test utilities as it seems unlikely that related functions are added into this new module later. I would have also preferred a name like create_client
for a function which actually creates a new instance and not just returns an existing one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is why this PR was open for 7 days and I asked for feedback.
No description provided.