async def METHOD_NAME(setdir, cli_args, capsys):
    with open(cli_args.logfile, mode="w") as f:
        f.write("this is some placeholder text")
    cli.get_server_ports(cli_args, timeout=1)
    captured = capsys.readouterr()
    assert "Unable to read server start time" in captured.out
    os.remove(cli_args.logfile)
    cli.run_cleanup("", headless=True)