Skip to content

Commit 338ffca

Browse files
committed
snapshot: a simple two peer orchestrated test works.
1 parent 7430d25 commit 338ffca

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/net/sharksystem/ui/messenger/cli/SharkNetMessengerAppSupportingDistributedTesting.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public void orchestrateTest(List<PeerHostingEnvironmentDescription> requiredPeer
221221
public void receivedScriptRQ(CharSequence scriptRQChannel) {
222222
if(!this.beTestOrchestrator) {
223223
this.tellUI("script request received - ignore - not a test orchestrator");
224+
return;
224225
} else {
225226
this.tellUI("script request received - try to stage a test");
226227
}

src/net/sharksystem/ui/messenger/cli/commands/testing/UICommandOrchestrateTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ protected void execute() throws Exception {
2222
* script for each peer
2323
*/
2424

25+
/**
26+
* what works - independent tests - no interaction between test peers
27+
* Test with one peer... test is executed - results are persistent in test peer
28+
* Test with two peers... no script is executed, Clara even claims not to be able to stage a test.
29+
*/
30+
2531
// Orchestrator: orchestrateTest dummy; openTCP 9999
2632
// dann Peers: connectTCP localhost 9999; scriptRQ
2733

2834
String script1_0 = "connectTCP localhost 9999;release A1;wait 5000;lsMessages;";
2935
String script1_1 = "openTCP 9999;block A1;sendMessage HiFromBob;wait 5000;";
3036

37+
// works: 2025.12.03
3138
String script0_0 = "sendMessage HiFromTest;wait 1000;lsMessages;";
3239
String script0_1 = "sendMessage HiFromTest;wait 1000;lsMessages;";
3340

0 commit comments

Comments
 (0)