You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2021/09/28 20:16:10 UTC
[cassandra] branch trunk updated: Initialize tmd before each test
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0218423 Initialize tmd before each test
0218423 is described below
commit 021842312794a7fc24d49144f9aa7f22bb74a1f9
Author: Brandon Williams <br...@apache.org>
AuthorDate: Tue Sep 28 12:08:45 2021 -0500
Initialize tmd before each test
Patch by brandonwilliams; reviewed by edimitrova for CASSANDRA-17007
---
test/unit/org/apache/cassandra/locator/TokenMetadataTest.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/unit/org/apache/cassandra/locator/TokenMetadataTest.java b/test/unit/org/apache/cassandra/locator/TokenMetadataTest.java
index bb8a177..06ce83c 100644
--- a/test/unit/org/apache/cassandra/locator/TokenMetadataTest.java
+++ b/test/unit/org/apache/cassandra/locator/TokenMetadataTest.java
@@ -33,6 +33,7 @@ import com.google.common.collect.Iterators;
import com.google.common.collect.Multimap;
import org.junit.BeforeClass;
+import org.junit.Before;
import org.junit.Test;
import org.apache.cassandra.config.DatabaseDescriptor;
@@ -58,6 +59,11 @@ public class TokenMetadataTest
public static void beforeClass() throws Throwable
{
DatabaseDescriptor.daemonInitialization();
+ }
+
+ @Before
+ public void before() throws Throwable
+ {
tmd = StorageService.instance.getTokenMetadata();
tmd.updateNormalToken(token(ONE), InetAddressAndPort.getByName("127.0.0.1"));
tmd.updateNormalToken(token(SIX), InetAddressAndPort.getByName("127.0.0.6"));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org