You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by phunt <gi...@git.apache.org> on 2018/04/13 22:47:54 UTC

[GitHub] zookeeper pull request #497: ZOOKEEPER-2415. SessionTest is using Thread dep...

Github user phunt commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/497#discussion_r181525743
  
    --- Diff: src/java/test/org/apache/zookeeper/test/SessionTimeoutTest.java ---
    @@ -0,0 +1,188 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.zookeeper.test;
    +
    +import org.apache.zookeeper.CreateMode;
    +import org.apache.zookeeper.DisconnectableZooKeeper;
    +import org.apache.zookeeper.KeeperException;
    +import org.apache.zookeeper.PortAssignment;
    +import org.apache.zookeeper.WatchedEvent;
    +import org.apache.zookeeper.Watcher;
    +import org.apache.zookeeper.ZKTestCase;
    +import org.apache.zookeeper.ZooDefs;
    +import org.apache.zookeeper.data.Stat;
    +import org.apache.zookeeper.server.ServerCnxnFactory;
    +import org.apache.zookeeper.server.ZooKeeperServer;
    +import org.junit.After;
    +import org.junit.Assert;
    +import org.junit.Before;
    +import org.junit.Test;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import java.io.File;
    +import java.io.IOException;
    +import java.util.concurrent.CountDownLatch;
    +import java.util.concurrent.TimeUnit;
    +
    +import static org.apache.zookeeper.test.ClientBase.CONNECTION_TIMEOUT;
    +import static org.junit.Assert.assertNotNull;
    +import static org.junit.Assert.assertNull;
    +
    +public class SessionTimeoutTest extends ZKTestCase {
    +    protected static final Logger LOG = LoggerFactory.getLogger(SessionTest.class);
    --- End diff --
    
    Should be SessionTimeoutTest rather than SessionTest.


---