potiuk commented on code in PR #24432:
URL: https://github.com/apache/airflow/pull/24432#discussion_r902929062


##########
tests/jobs/test_local_task_job.py:
##########
@@ -462,7 +463,7 @@ def 
test_failure_callback_called_by_airflow_run_raw_process(self, monkeypatch, t
         assert len(lines) == 1  # invoke once
         assert lines[0].startswith(ti.key.primary)
         this_pid = str(os.getpid())
-        assert this_pid not in lines[0]
+        assert not lines[0].endswith(f"pid: {this_pid}")

Review Comment:
   Actually I came up with similar fix as original simple one (in #24584) and 
somehow I have a a feeling this is a better one (well certainly simpler to 
understand). There is a this ancient Chinese proverb "You have a problem? 
Introduce regexp - you will have two problems"  :D. Somehow I feel checking 
endswith `: ID`.  is better (but I just realized that my solution was actually 
wrong as I did not check for EOL :).  
   
   So I am ok with merging this one after rebase.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to