Skip to content

Commit 0c17158

Browse files
committed
Change the word lenght for removing flaky test
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
1 parent 57f6b96 commit 0c17158

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/src/main/java/io/dapr/examples/workflows/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ output_match_mode: substring
246246
expected_stdout_lines:
247247
- 'Activity returned: 2'
248248
- 'Activity returned: 9'
249-
- 'Activity returned: 21'
249+
- 'Activity returned: 3'
250250
- 'Activity returned: 17'
251-
- 'Workflow finished with result: 60'
251+
- 'Workflow finished with result: 42'
252252
background: true
253253
sleep: 60
254254
timeout_seconds: 60
@@ -276,7 +276,7 @@ Now you can see the logs from worker:
276276
== APP == 2023-11-07 14:52:03,152 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity returned: 9
277277
== APP == 2023-11-07 14:52:03,152 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity finished
278278
== APP == 2023-11-07 14:52:03,167 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Starting Activity: io.dapr.examples.workflows.faninout.CountWordsActivity
279-
== APP == 2023-11-07 14:52:03,167 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity returned: 21
279+
== APP == 2023-11-07 14:52:03,167 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity returned: 3
280280
== APP == 2023-11-07 14:52:03,167 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity finished
281281
== APP == 2023-11-07 14:52:03,170 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Starting Activity: io.dapr.examples.workflows.faninout.CountWordsActivity
282282
== APP == 2023-11-07 14:52:03,170 {HH:mm:ss.SSS} [main] INFO i.d.e.w.faninout.CountWordsActivity - Activity returned: 17
@@ -538,4 +538,4 @@ The log from client:
538538
```text
539539
Started a new child-workflow model workflow with instance ID: c2fb9c83-435b-4b55-bdf1-833b39366cfb
540540
workflow instance with ID: c2fb9c83-435b-4b55-bdf1-833b39366cfb completed with result: !wolfkroW rpaD olleH
541-
```
541+
```

examples/src/main/java/io/dapr/examples/workflows/faninout/CountWordsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public class CountWordsActivity implements WorkflowActivity {
2424
@Override
2525
public Object run(WorkflowActivityContext ctx) {
2626
Logger logger = LoggerFactory.getLogger(CountWordsActivity.class);
27-
logger.info("Starting Activity: " + ctx.getName());
27+
logger.info("Starting Activity: {}", ctx.getName());
2828

2929
String input = ctx.getInput(String.class);
3030
StringTokenizer tokenizer = new StringTokenizer(input);
3131
int result = tokenizer.countTokens();
3232

33-
logger.info("Activity returned: " + result);
33+
logger.info("Activity returned: {}", result);
3434
logger.info("Activity finished");
3535

3636
return result;

examples/src/main/java/io/dapr/examples/workflows/faninout/DemoFanInOutClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void main(String[] args) throws InterruptedException {
3434
List<String> listOfStrings = Arrays.asList(
3535
"Hello, world!",
3636
"The quick brown fox jumps over the lazy dog.",
37-
"If a tree falls in the forest and there is no one there to hear it, does it make a sound?",
37+
"Hello, from Dapr!",
3838
"The greatest glory in living lies not in never falling, but in rising every time we fall.",
3939
"Always remember that you are absolutely unique. Just like everyone else.");
4040

0 commit comments

Comments
 (0)