<commit_before>#!/usr/bin/env pytest


# Test that a startd that reports to a collector whose name
# doesn't exist neither crashes nor hangs

import logging
import htcondor

from ornithology import *

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

# Setup the startd to also report to a bogus collector
@standup
def condor(test_dir):
    with Condor(test_dir / "condor", config={"COLLECTOR_HOST": "$(COLLECTOR_HOST), bogus.example.com"}) as condor:
        yield condor

@action
def submit_sleep_job_cmd(test_dir, condor, path_to_sleep):
    sub_description = """
        executable = {exe}
        arguments = 1
        
        queue
    """.format(
        exe=path_to_sleep<commit_msg>HTCONDOR-1297 Fix test that broke on 256 way machine<commit_after>#!/usr/bin/env pytest


# Test that a startd that reports to a collector whose name
# doesn't exist neither crashes nor hangs

import logging
import htcondor

from ornithology import *

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

# Setup the startd to also report to a bogus collector
@standup
def condor(test_dir):
    with Condor(test_dir / "condor", config={"NUM_CPUS": "4", "COLLECTOR_HOST": "$(COLLECTOR_HOST), bogus.example.com"}) as condor:
        yield condor

@action
def submit_sleep_job_cmd(test_dir, condor, path_to_sleep):
    sub_description = """
        executable = {exe}
        arguments = 1
        
        queue
    """.format(
        exe=path_to_sleep
{'fraction_non_alphanumeric': 0.09404600811907984, 'fraction_numerical': 0.006765899864682003, 'mean_word_length': 3.680379746835443, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '919575', 'n_tokens_mistral': 496, 'n_tokens_neox': 467, 'n_words': 139}