Skip to content

Commit

Permalink
Sped Up CodeletTest
Browse files Browse the repository at this point in the history
Changed codelet timestep and sleeps
Issue CST-Group#63 solved
  • Loading branch information
EltonCN committed Nov 28, 2024
1 parent 0b9a4aa commit 0cd9ba0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/br/unicamp/cst/core/entities/CodeletTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public void getOutputEnableFalseTest(){
boolean exceptionThrown = false;
Codelet testCodelet = null;
testCodelet = generateCodelet();
testCodelet.setTimeStep(50);
testCodelet.setName("thisCodeletWillFail");
List<Memory> dummyOutputs = Arrays.asList(new MemoryObject(), new MemoryObject());
testCodelet.setOutputs(dummyOutputs);
Expand All @@ -211,7 +212,7 @@ public void getOutputEnableFalseTest(){
mind.insertCodelet(testCodelet);
mind.start();
try{
Thread.sleep(1000);
Thread.sleep(100);
}
catch (InterruptedException e)
{
Expand Down Expand Up @@ -368,6 +369,7 @@ public void getTimeStepTest(){
public void runProfilingTest(){
Codelet testCodelet = generateCodelet();
testCodelet.setProfiling(true);
testCodelet.setTimeStep(50);

ByteArrayOutputStream outputStreamCaptor = new ByteArrayOutputStream();
System.setOut(new PrintStream(outputStreamCaptor));
Expand All @@ -376,7 +378,7 @@ public void runProfilingTest(){
mind.insertCodelet(testCodelet);
mind.start();
try {
Thread.sleep(1000);
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 0cd9ba0

Please sign in to comment.