Skip to content

Commit

Permalink
refactor: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
youngzil committed Dec 10, 2024
1 parent c7ec8a1 commit dc1bcb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public void setCluster(String cluster) {

@Override
public String toString() {
return toStringHelper().add("key", key).add("value", value).add("comment", comment).toString();
return toStringHelper().add("key", key).add("value", value).add("cluster", cluster).add("comment", comment).toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

import java.util.List;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Set;
import java.util.concurrent.CountDownLatch;
Expand All @@ -33,7 +31,6 @@
import java.util.concurrent.TimeUnit;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;

/**
* @author Jason Song([email protected])
Expand Down Expand Up @@ -80,7 +77,8 @@ public void testMessageToList() {

message = "appId+cluster";
keys = ReleaseMessageKeyGenerator.messageToList(message);
assertNull(keys);
assert keys != null;
assertEquals(0, keys.size());
}

private Runnable generateReleaseKeysTask(Namespace namespace, Set<String> releaseKeys,
Expand Down

0 comments on commit dc1bcb2

Please sign in to comment.