Confirm downloaded files in lambdatest

Hi, I’m trying to run an automation testing with selenium python and would like to assert if a file was downloaded in lambdatest.

Once i have downloaded the file, i’m using this code to verify is the document was downloaded or not. I saw that the document actually is downloaded but the test is marked as failed. Could you help me please? i don’t know what’s wrong. The name of the file is also correct.

    archivo = "Compromisos_todos_" + time.strftime("%d%m%Y") + ".xlsx"
    print(f"Verificando existencia del archivo: {archivo}")
    
    exists_status = driver.execute_script(f"lambda-file-exists='{archivo}';")
    print(f"File exists: {exists_status}")

    if exists_status == True:
        driver.execute_script("lambda-status=passed")
        print("Tests are run successfully!")
    else:
        print(f"El archivo {archivo} no se encontró.")
        driver.execute_script("lambda-status=failed")

@LambdaTest