• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

esl / MongooseIM / 3894
86%

Build:
DEFAULT BRANCH: master
Ran 03 Jan 2018 05:53PM UTC
Jobs 5
Files 289
Run time 25min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3894

push

travis-ci

fenek
mod_muc - fix for room registration race condition (#1608)

* Prepare for test

Add meck functions for mod muc

* Add regression tests, handle race condition

Tests are passing and started processes for identical rooms are terminated
The tests do not include check for the actual process, only the registered pid

* Remove comments

Some unused code was commented out, removed those comments

* Improve new test case names

Give the new test cases slightly more descriptive names

* Failing tests, investigating cause

Committing to checkout master

* Add sleep timer before mnesia read transaction

If Mnesia is slowed down by the tests the read operation will try to read
before a previous write transaction has completed.
The timer will now give the test some breathing room to complete the transaction

* Apply dialyzer fix

Added appropriate return value to function spec

* Apply review changes

Remove unnecessary sleeps in tests
Refactor record and macro definitions to header files
No longer ignore return value of mod_muc_room:route/5

* Apply requested changes

Revert header file changes
Use existing functions in tests instead of mnesia calls
Clarify function names in mod_muc previously related to routing
Add stop/1 function in mod_muc_room

26 of 26 new or added lines in 2 files covered. (100.0%)

6128 of 28164 relevant lines covered (21.76%)

464.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/mod_muc_room.erl
25
100.0
src/mod_muc.erl

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/mod_private_riak.erl
1
100.0
src/mod_vcard_riak.erl
1
100.0
src/ejabberd_config.erl
2
100.0
src/mongoose_metrics.erl
3
100.0
src/ejabberd_binary.erl
5
100.0
src/mod_privacy_riak.erl
6
100.0
src/rdbms/mongoose_rdbms_pgsql.erl
7
100.0
src/mod_last_riak.erl
8
100.0
src/mod_offline_riak.erl
13
100.0
src/ejabberd_auth_riak.erl
17
100.0
src/mongoose_riak_sup.erl
29
100.0
src/mod_roster_riak.erl
29
100.0
src/mongoose_riak.erl
Jobs
ID Job ID Ran Files Coverage
1 3894.1 (PRESET=internal_mnesia DB=mnesia REL_CONFIG=with-all TLS_DIST=yes) 03 Jan 2018 05:54PM UTC 0
19.0
Travis Job 3894.1
2 3894.2 (PRESET=mysql_redis DB=mysql REL_CONFIG="with-mysql with-redis") 03 Jan 2018 05:53PM UTC 0
19.29
Travis Job 3894.2
3 3894.3 (PRESET=odbc_pgsql_mnesia DB=pgsql REL_CONFIG=with-odbc) 03 Jan 2018 05:58PM UTC 0
19.42
Travis Job 3894.3
4 3894.4 (PRESET=ldap_mnesia DB=mnesia REL_CONFIG=with-none) 03 Jan 2018 06:16PM UTC 0
20.82
Travis Job 3894.4
5 3894.5 (PRESET=cassandra_mnesia DB=cassandra REL_CONFIG=with-cassandra CASSANDRA_VERSION=3.9) 03 Jan 2018 06:17PM UTC 0
19.33
Travis Job 3894.5
Source Files on build 3894
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3894
  • 33a7e1fa on github
  • Prev Build on master (#3890)
  • Next Build on master (#3896)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc