File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1479,6 +1479,7 @@ def mask_func(data):
14791479 span .update (output = "new_classified" )
14801480
14811481 langfuse .flush ()
1482+ sleep (1 )
14821483
14831484 fetched_trace = api_wrapper .get_trace (trace .id )
14841485 assert fetched_trace ["input" ] == {"sensitive" : "MASKED" }
@@ -1503,6 +1504,7 @@ def faulty_mask_func(data):
15031504 sleep (0.1 )
15041505 trace .update (output = {"more" : "sensitive" })
15051506 langfuse .flush ()
1507+ sleep (1 )
15061508
15071509 fetched_trace = api_wrapper .get_trace (trace .id )
15081510 assert fetched_trace ["input" ] == "<fully masked due to failed mask function>"
Original file line number Diff line number Diff line change @@ -431,8 +431,9 @@ def test_llama_index_dataset():
431431 index .as_query_engine ().query (
432432 "What did the speaker achieve in the past twelve months?"
433433 )
434-
435434 langfuse .flush ()
435+ handler .flush ()
436+
436437 run = langfuse .get_dataset_run (dataset_name , run_name )
437438
438439 assert run .name == run_name
You can’t perform that action at this time.
0 commit comments