Make it clear that this test does not expect an authentication failure
This commit is contained in:
		
							parent
							
								
									089ef7e86f
								
							
						
					
					
						commit
						0e298907aa
					
				|  | @ -117,8 +117,6 @@ public class MqttSSLTest extends TestCase implements MqttCallback { | ||||||
|         try { |         try { | ||||||
|             conOpt.setSocketFactory(MutualAuth.getSSLContext().getSocketFactory()); |             conOpt.setSocketFactory(MutualAuth.getSSLContext().getSocketFactory()); | ||||||
|             client.connect(conOpt); |             client.connect(conOpt); | ||||||
|         } catch (MqttException ex) { |  | ||||||
|             Assert.assertEquals(MqttException.REASON_CODE_NOT_AUTHORIZED, ex.getReasonCode()); |  | ||||||
|         } catch (Exception e) { |         } catch (Exception e) { | ||||||
|             e.printStackTrace(); |             e.printStackTrace(); | ||||||
|             fail("Exception: " + e.getMessage()); |             fail("Exception: " + e.getMessage()); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue