Skip to content

Commit

Permalink
Fix issue that scenarios are not updated properly. Prepare release no…
Browse files Browse the repository at this point in the history
…te for release.
  • Loading branch information
holomekc committed Sep 17, 2023
1 parent 7156e9b commit 2093960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Merge upstream wiremock version 2.35.1
Update to wiremock 3.0.4

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import static java.util.stream.Collectors.toList;

import com.github.tomakehurst.wiremock.admin.NotFoundException;
import com.github.tomakehurst.wiremock.jetty.websockets.Message;
import com.github.tomakehurst.wiremock.jetty.websockets.WebSocketEndpoint;
import com.github.tomakehurst.wiremock.store.ScenariosStore;
import java.util.List;

Expand Down Expand Up @@ -106,6 +108,7 @@ public void onStubServed(StubMapping mapping) {
&& (mapping.getRequiredScenarioState() == null
|| scenario.getState().equals(mapping.getRequiredScenarioState()))) {
Scenario newScenario = scenario.setState(mapping.getNewScenarioState());
WebSocketEndpoint.broadcast(Message.SCENARIO);
store.put(scenarioName, newScenario);
}
}
Expand Down

0 comments on commit 2093960

Please sign in to comment.