[CONTROLLER-17] NetUtilsTest taking too long to run Created: 19/May/13  Updated: 19/Oct/17  Resolved: 19/May/16

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: 0.4.0
Fix Version/s: None

Type: Bug
Reporter: David Erickson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: PC


External issue ID: 23

 Description   

The NetUtilsTest takes almost a minute to run on my machine, presumably it is doing real name lookups which are taking a long time. It would be nice to get this time down as the entire system testing/build takes only 4 minutes, so ~25% of the time is spent on this one unit test.



 Comments   
Comment by Prasanth Pallamreddy [ 15/Jul/13 ]

I tried running the test on my mac and the test runs under 5 secs. What OS are you using? It would help if you can take a couple of thread dumps when the test is running.

$ pwd
.../controller/opendaylight/sal/api

$ time mvn test -Dtest=NetUtilsTest

...

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.opendaylight.controller.sal.utils.NetUtilsTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.147 sec - in org.opendaylight.controller.sal.utils.NetUtilsTest

Results :

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.609s
[INFO] Finished at: Mon Jul 15 11:07:54 PDT 2013
[INFO] Final Memory: 18M/324M
[INFO] ------------------------------------------------------------------------

real 0m4.775s
user 0m11.025s
sys 0m0.628s

Comment by Carol Sanders [ 04/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL

Comment by Robert Varga [ 19/May/16 ]

AD-SAL has been removed, this issue will not be fixed.

Generated at Wed Feb 07 19:51:58 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.