File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,21 @@ function (Container $container): mixed {
6767 if ($ e instanceof TemporalException) {
6868 echo "\n=== Workflow history for failed test {$ this ->name ()} === \n" ;
6969 $ this ->printWorkflowHistory ($ container ->get (WorkflowClientInterface::class), $ args );
70+
71+ $ logRecords = $ container ->get (ClientLogger::class)->getRecords ();
72+ if ($ logRecords !== []) {
73+ echo "\n=== Client log records === \n" ;
74+ foreach ($ logRecords as $ record ) {
75+ echo \sprintf (
76+ "[%s] %s%s \n" ,
77+ $ record ->level ,
78+ $ record ->message ,
79+ \json_encode ($ record ->context , JSON_UNESCAPED_UNICODE ),
80+ );
81+ }
82+ }
83+
84+ echo "\n\n" ;
7085 }
7186
7287 throw $ e ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class DynamicUpdateTest extends TestCase
2222{
2323 #[Test]
2424 public function addUpdateMethodWithoutValidation (
25- #[Client(timeout: 10 .0 )]
25+ #[Client(timeout: 15 .0 )]
2626 #[Stub('Extra_Update_DynamicUpdate ' )]
2727 WorkflowStubInterface $ stub ,
2828 ): void {
You can’t perform that action at this time.
0 commit comments