Skip to content

Commit

Permalink
Added init() to the RoomManager
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelandre committed Jun 13, 2019
1 parent b5735e1 commit ea7d527
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.cosmosoftware.kite</groupId>
<artifactId>kite-extras</artifactId>
<version>0.1.22</version>
<version>0.1.23</version>

<properties>
<kite.log4j.version>1.2.17</kite.log4j.version>
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/cosmosoftware/kite/manager/RoomManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,8 @@ private String getRandomRoomId(int roomIdLen) {
return Integer.toString((int) Math.floor(Math.random() * Math.pow(10, roomIdLen)));
}

public static void init() {
roomManagers.clear();
}

}
2 changes: 1 addition & 1 deletion src/main/java/io/cosmosoftware/kite/steps/StepPhase.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public boolean shouldProcess(TestStep step) {
StepPhase stepPhase = step.getStepPhase();
switch(stepPhase) {
case DEFAULT:
return this == RAMPUP;
return this == RAMPUP || stepPhase == this;
case RAMPUP:
case LOADREACHED:
return stepPhase == this;
Expand Down

0 comments on commit ea7d527

Please sign in to comment.