Skip to content

Commit

Permalink
fix: Exclusion op
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang committed May 1, 2023
1 parent 9cb3faa commit 6f1612c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ public Context prepareContext(@NotNull ScenarioFileBean scenario, @NotNull UUID
this.isActorPrepared = ThreadingUtil.waitFor(this.registry.getPlugin(), () -> {
try
{
Thread.sleep(300); // アクションとの排他制御のためにちょっと待つ。
for (PlayerBean actor : context.getActors())
actors.add(this.actorManager.createActor(actor));
return true;
}
catch (ContextPreparationException e)
catch (ContextPreparationException | InterruptedException e)
{
throw new IllegalStateException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public TestResult start(@NotNull TriggerBean trigger) throws TriggerNotFoundExce
MsgArgs.of("scenarioName", this.scenario.getName())
));
this.state = TestState.STARTING;
Thread.sleep(300); // アクションとの排他制御のためにちょっと待つ。ロードしてる風でごめんね ><
Thread.sleep(150); // アクションとの排他制御のためにちょっと待つ。ロードしてる風でごめんね ><

TestResult result = this.startScenarioRun(compiledTrigger);
this.state = TestState.FINISHED;
Expand Down

0 comments on commit 6f1612c

Please sign in to comment.