diff --git a/core/src/test/java/io/atomix/AtomixGroupTest.java b/core/src/test/java/io/atomix/AtomixGroupTest.java
index <HASH>..<HASH> 100644
--- a/core/src/test/java/io/atomix/AtomixGroupTest.java
+++ b/core/src/test/java/io/atomix/AtomixGroupTest.java
@@ -60,7 +60,7 @@ public class AtomixGroupTest extends AbstractAtomixTest {
       }
     });
     group2.onJoin(m -> {
-      if (group1.members().size() == 2) {
+      if (group2.members().size() == 2) {
         resume();
       }
     });
Fix bug in Atomix group test.