Test: trace logging for testDeleteSafe

This commit is contained in:
Boaz Leskes 2015-01-07 23:16:19 +01:00
parent acf6132a99
commit ad66d25fa2
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import org.elasticsearch.common.util.concurrent.CountDown;
import org.elasticsearch.index.Index; import org.elasticsearch.index.Index;
import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.index.shard.ShardId;
import org.elasticsearch.test.ElasticsearchTestCase; import org.elasticsearch.test.ElasticsearchTestCase;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.junit.Test; import org.junit.Test;
import java.io.IOException; import java.io.IOException;
@ -149,6 +150,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
} }
@Test @Test
@TestLogging("env:TRACE")
public void testDeleteSafe() throws IOException, InterruptedException { public void testDeleteSafe() throws IOException, InterruptedException {
final NodeEnvironment env = newNodeEnvironment(); final NodeEnvironment env = newNodeEnvironment();
ShardLock fooLock = env.shardLock(new ShardId("foo", 1)); ShardLock fooLock = env.shardLock(new ShardId("foo", 1));