-
Notifications
You must be signed in to change notification settings - Fork 428
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
Simplify stream management suite #3453
Conversation
a2a6e31
to
aaee737
Compare
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #3453 +/- ##
==========================================
- Coverage 80.86% 80.84% -0.02%
==========================================
Files 415 415
Lines 32312 32312
==========================================
- Hits 26129 26124 -5
- Misses 6183 6188 +5
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing clean-up, thank you!
Just a few comments below :)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bc0c50b
to
2dafd14
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
small_tests_24 / small_tests / 9a15e27 small_tests_23 / small_tests / 9a15e27 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 9a15e27 dynamic_domains_mysql_redis_24 / mysql_redis / 9a15e27 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 9a15e27 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 9a15e27 ldap_mnesia_23 / ldap_mnesia / 9a15e27 ldap_mnesia_24 / ldap_mnesia / 9a15e27 internal_mnesia_24 / internal_mnesia / 9a15e27 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 9a15e27 mysql_redis_24 / mysql_redis / 9a15e27 pgsql_mnesia_23 / pgsql_mnesia / 9a15e27 pgsql_mnesia_24 / pgsql_mnesia / 9a15e27 mssql_mnesia_24 / odbc_mssql_mnesia / 9a15e27 riak_mnesia_24 / riak_mnesia / 9a15e27 |
big_tests/tests/sm_helper.erl
Outdated
receive | ||
{'DOWN', MRef, _Type, _C2SPid, _Info} -> | ||
ok | ||
after 5000 -> | ||
ct:fail(wait_for_process_termination_timeout) | ||
end, | ||
ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
receive | |
{'DOWN', MRef, _Type, _C2SPid, _Info} -> | |
ok | |
after 5000 -> | |
ct:fail(wait_for_process_termination_timeout) | |
end, | |
ok. | |
receive | |
{'DOWN', MRef, _Type, _C2SPid, _Info} -> | |
ok | |
after 5000 -> | |
ct:fail(wait_for_process_termination_timeout) | |
end. |
big_tests/tests/sm_SUITE.erl
Outdated
@@ -1,22 +1,38 @@ | |||
%% Session Management tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed
%% Session Management tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omg, actually needed.
It is Stream Management.
There are two things called SM in MongooseIM (Stream and Session).
small_tests_24 / small_tests / 0538006 small_tests_23 / small_tests / 0538006 dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 0538006 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 0538006 dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 0538006 dynamic_domains_mysql_redis_24 / mysql_redis / 0538006 ldap_mnesia_23 / ldap_mnesia / 0538006 ldap_mnesia_24 / ldap_mnesia / 0538006 internal_mnesia_24 / internal_mnesia / 0538006 pgsql_mnesia_24 / pgsql_mnesia / 0538006 elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 0538006 pgsql_mnesia_23 / pgsql_mnesia / 0538006 mssql_mnesia_24 / odbc_mssql_mnesia / 0538006 mysql_redis_24 / mysql_redis / 0538006 riak_mnesia_24 / riak_mnesia / 0538006 |
Enable preserve_order testcase (it was not running) Fix resume_expired_session_returns_correct_h Define suite() callback first
The proper fix would require extra tests to reproduce alternative orders reliably and fix them
0538006
to
7bb63ff
Compare
small_tests_24 / small_tests / 7bb63ff small_tests_23 / small_tests / 7bb63ff dynamic_domains_mysql_redis_24 / mysql_redis / 7bb63ff dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 7bb63ff dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 7bb63ff dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 7bb63ff ldap_mnesia_24 / ldap_mnesia / 7bb63ff internal_mnesia_24 / internal_mnesia / 7bb63ff ldap_mnesia_23 / ldap_mnesia / 7bb63ff elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 7bb63ff pgsql_mnesia_24 / pgsql_mnesia / 7bb63ff mysql_redis_24 / mysql_redis / 7bb63ff mssql_mnesia_24 / odbc_mssql_mnesia / 7bb63ff pgsql_mnesia_23 / pgsql_mnesia / 7bb63ff riak_mnesia_24 / riak_mnesia / 7bb63ff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent 👌🏽
Proposed changes include:
Motivation:
Reduce complexity to keep in mind that:
connections_steps_to_something
is harder to read comparing to justsomething
.