Skip to content

Conversation

@ham1
Copy link
Contributor

@ham1 ham1 commented Apr 5, 2020

Simplified and sped up DNSCacheManagerSpec

@vlsi
Copy link
Collaborator

vlsi commented Apr 5, 2020

Can you please clarify why do you mean this speeds up the test?

@ham1
Copy link
Contributor Author

ham1 commented Apr 6, 2020

It only does a DNS test/lookup once rather than on each @IgnoreIf, I've also used @Requires as it's more readable.

So if you were running this with slow DNS it would timeout once rather than 4 times and save you 1 or many seconds.

@vlsi
Copy link
Collaborator

vlsi commented Apr 6, 2020

Ah, thanks. The change looks good to me.

@pmouawad , any comments?

Co-Authored-By: Vladimir Sitnikov <[email protected]>
@pmouawad pmouawad merged commit 9fedd18 into apache:master Apr 25, 2020
kkalinin pushed a commit to kkalinin/jmeter that referenced this pull request Mar 11, 2021
…apache#580)

* Speed up DNSCacheManagerSpec + simplify some code in DNSCacheManager.

* Remove printnln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants