Update tests
This commit is contained in:
		
							parent
							
								
									7b812d1b91
								
							
						
					
					
						commit
						87994f521f
					
				|  | @ -48,6 +48,7 @@ consume_notification_test_()            -> ?RUN([]). | |||
| basic_nack_test_()                      -> ?RUN([]). | ||||
| large_content_test_()                   -> ?RUN([]). | ||||
| lifecycle_test_()                       -> ?RUN([]). | ||||
| auth_test_()                            -> ?RUN([]). | ||||
| nowait_exchange_declare_test_()         -> ?RUN([]). | ||||
| channel_repeat_open_close_test_()       -> ?RUN([]). | ||||
| channel_multi_open_close_test_()        -> ?RUN([]). | ||||
|  |  | |||
|  | @ -182,8 +182,7 @@ non_existent_user_test() -> | |||
| 
 | ||||
| invalid_password_test() -> | ||||
|     Params = [{username, <<"guest">>}, {password, test_util:uuid()}], | ||||
|     ?assertMatch({error, auth_failure}, | ||||
|                  test_util:new_connection(just_network, Params)). | ||||
|     ?assertMatch({error, auth_failure}, test_util:new_connection(Params)). | ||||
| 
 | ||||
| non_existent_vhost_test() -> | ||||
|     Params = [{virtual_host, test_util:uuid()}], | ||||
|  |  | |||
|  | @ -166,6 +166,11 @@ lifecycle_test() -> | |||
|     teardown(Connection, Channel), | ||||
|     ok. | ||||
| 
 | ||||
| auth_test() -> | ||||
|     {ok, Connection} = new_connection(just_direct, [{password, <<"guest">>}]), | ||||
|     amqp_connection:close(Connection), | ||||
|     wait_for_death(Connection). | ||||
| 
 | ||||
| queue_exchange_binding(Channel, X, Parent, Tag) -> | ||||
|     receive | ||||
|         nothing -> ok | ||||
|  | @ -1002,5 +1007,6 @@ make_direct_params(Props) -> | |||
|                   proplists:get_value(Key, Props, Default) | ||||
|           end, | ||||
|     #amqp_params_direct{username     = Pgv(username, <<"guest">>), | ||||
|                         password     = Pgv(password, none), | ||||
|                         virtual_host = Pgv(virtual_host, <<"/">>), | ||||
|                         node         = Pgv(node, node())}. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue