Ignore a non-deterministic test in SslHandlerTest
- Sometimes, random can generate a seemingly legit SSL record.
This commit is contained in:
parent
ecb134b0dc
commit
a8b6756554
|
@ -13,21 +13,23 @@
|
|||
*/
|
||||
package org.jboss.netty.handler.ssl;
|
||||
|
||||
import java.util.Random;
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
import org.jboss.netty.buffer.ChannelBuffers;
|
||||
import org.jboss.netty.example.securechat.SecureChatSslContextFactory;
|
||||
import org.jboss.netty.handler.codec.embedder.CodecEmbedderException;
|
||||
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
import org.jboss.netty.buffer.ChannelBuffers;
|
||||
import org.jboss.netty.example.securechat.SecureChatSslContextFactory;
|
||||
import org.jboss.netty.handler.codec.embedder.CodecEmbedderException;
|
||||
import org.jboss.netty.handler.codec.embedder.DecoderEmbedder;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import java.util.Random;
|
||||
|
||||
public class SslHandlerTest {
|
||||
|
||||
private final Random random = new Random();
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testDetectNonSslRecord() {
|
||||
byte[] data = new byte[1024];
|
||||
random.nextBytes(data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user