Changeset 7749


Ignore:
Timestamp:
Sep 26, 2019, 2:07:25 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2194: Get rid of annoying wait time in TestJob?

Location:
trunk/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/NullPlugin.java

    r6393 r7749  
    392392    if (command.equals(Request.COMMAND_EXECUTE))
    393393    {
     394      boolean isSilent = Boolean.TRUE.equals(request.getParameterValue("isSilent"));
    394395      progress.display(0, "starting");
    395396      try
     
    398399        {
    399400          progress.display(20*i, "processing");
    400           Thread.sleep(5000);
     401          if (!isSilent) Thread.sleep(5000);
    401402          progress.append("...");
    402403        }
  • trunk/src/test/TestJob.java

    r6988 r7749  
    9595        job.execute(TestUtil.getSilent() ? null : new ConsoleProgressReporter(), TestUtil.getLocalIp());
    9696      dc.close();
     97      request.setParameterValue("isSilent", TestUtil.getSilent());
    9798      PluginResponse response = request.invoke();
    9899      Response.Status status = response.getStatus();
Note: See TracChangeset for help on using the changeset viewer.