Skip to content

Commit

Permalink
Don't publish AMQP updates during testing (2600hz#6427)
Browse files Browse the repository at this point in the history
Listeners for db config change payloads try to load views into a
database which is going away quite fast. No need, we don't use views
in this test.
  • Loading branch information
jamesaimonetti authored Mar 27, 2020
1 parent 335c812 commit c610e2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/kazoo_proper/src/pqc_kz_datamgr.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ run_it(F) -> F().

-spec seq_kzoo_56() -> 'ok'.
seq_kzoo_56() ->
kz_datamgr:suppress_change_notice(),
Doc = kz_json:from_list([{<<"_id">>, ?FROM_DOC_ID}
| [{kz_binary:rand_hex(4), kz_binary:rand_hex(5)} || _ <- lists:seq(1,10)]
]),
Expand All @@ -54,6 +55,7 @@ seq_kzoo_56() ->
cleanup() ->
'true' = kz_datamgr:db_delete(?FROM_DB),
'true' = kz_datamgr:db_delete(?TO_DB),
kz_datamgr:enable_change_notice(),
lager:info("CLEANUP FINISHED").

save_mp3(DB, DocId, AttId, MP3) ->
Expand Down

0 comments on commit c610e2d

Please sign in to comment.