Skip to content

tests: context cleanup failed #1132

@janl

Description

@janl

With changes in an unrelated module (#1127), this came up.

A test cleanup/teardown failed, causing all following context setups to fail.

module 'chttpd_db_bulk_get_test'
  /db/_bulk_get tests
    chttpd_db_bulk_get_test:66: should_require_docs_field...ok
    chttpd_db_bulk_get_test:72: should_not_accept_specific_query_params (rev)...[0.031 s] ok
    chttpd_db_bulk_get_test:72: should_not_accept_specific_query_params (open_revs)...[0.032 s] ok
    chttpd_db_bulk_get_test:72: should_not_accept_specific_query_params (atts_since)...[0.024 s] ok
    chttpd_db_bulk_get_test:72: should_not_accept_specific_query_params (w)...[0.026 s] ok
    chttpd_db_bulk_get_test:72: should_not_accept_specific_query_params (new_edits)...[0.026 s] ok
    undefined
    *** context cleanup failed ***
**in function meck_proc:gen_server/3 (src/meck_proc.erl, line 458)
in call from meck:unload/1 (src/meck.erl, line 430)
in call from chttpd_db_bulk_get_test:teardown/1 (test/chttpd_db_bulk_get_test.erl, line 36)
**error:{not_mocked,chttpd}


  undefined
  *** context setup failed ***
**in function meck_proc:start/2 (src/meck_proc.erl, line 96)
  called as start(chttpd,[passthrough])
in call from chttpd_db_bulk_get_test:mock/1 (test/chttpd_db_bulk_get_test.erl, line 254)
in call from chttpd_db_bulk_get_test:setup/0 (test/chttpd_db_bulk_get_test.erl, line 23)
**error:{already_started,<0.7458.0>}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions