Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py36 integration test bustage (on osx?) #135

Closed
escapewindow opened this issue Aug 14, 2017 · 0 comments
Closed

py36 integration test bustage (on osx?) #135

escapewindow opened this issue Aug 14, 2017 · 0 comments

Comments

@escapewindow
Copy link
Contributor

This doesn't affect travis, which is good, but that may just be because travis doesn't run integration tests.

________________________ test_run_maxtimeout[context_function0] ________________________

event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
context_function = <function get_context at 0x111b76158>

    @pytest.mark.skipif(os.environ.get("NO_TESTS_OVER_WIRE"), reason=SKIP_REASON)
    @pytest.mark.parametrize("context_function", [get_context, get_temp_creds_context])
    def test_run_maxtimeout(event_loop, context_function):
        task_id = slugid.nice().decode('utf-8')
        task_group_id = slugid.nice().decode('utf-8')
        partial_config = {
            'task_max_timeout': 2,
        }
        with context_function(partial_config) as context:
            result = event_loop.run_until_complete(
                create_task(context, task_id, task_group_id)
            )
            assert result['status']['state'] == 'pending'
            with remember_cwd():
                os.chdir(os.path.dirname(context.config['work_dir']))
                with pytest.raises(RuntimeError):
                    event_loop.run_until_complete(
>                       worker.run_loop(context, creds_key="integration_credentials")
                    )
E                   Failed: DID NOT RAISE <class 'RuntimeError'>

scriptworker/test/test_integration.py:179: Failed
________________________ test_run_maxtimeout[context_function1] ________________________

event_loop = <_UnixSelectorEventLoop running=False closed=False debug=False>
context_function = <function get_temp_creds_context at 0x111b762f0>

    @pytest.mark.skipif(os.environ.get("NO_TESTS_OVER_WIRE"), reason=SKIP_REASON)
    @pytest.mark.parametrize("context_function", [get_context, get_temp_creds_context])
    def test_run_maxtimeout(event_loop, context_function):
        task_id = slugid.nice().decode('utf-8')
        task_group_id = slugid.nice().decode('utf-8')
        partial_config = {
            'task_max_timeout': 2,
        }
        with context_function(partial_config) as context:
            result = event_loop.run_until_complete(
                create_task(context, task_id, task_group_id)
            )
            assert result['status']['state'] == 'pending'
            with remember_cwd():
                os.chdir(os.path.dirname(context.config['work_dir']))
                with pytest.raises(RuntimeError):
                    event_loop.run_until_complete(
>                       worker.run_loop(context, creds_key="integration_credentials")
                    )
E                   Failed: DID NOT RAISE <class 'RuntimeError'>

scriptworker/test/test_integration.py:179: Failed
======================== 2 failed, 374 passed in 179.57 seconds ========================
ERROR: InvocationError: '/Users/asasaki/src/tc/scriptworker/.tox/py36/bin/py.test --cov-config .coveragerc --cov=scriptworker --cov-report term-missing'
_______________________________________ summary ________________________________________
ERROR:   py36: commands failed
escapewindow added a commit to escapewindow/scriptworker that referenced this issue Mar 2, 2018
escapewindow added a commit that referenced this issue Mar 3, 2018
don't expect a RuntimeError on py36. Fixes #135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant