Skip to content

Commit

Permalink
test: add test-cases for common-module
Browse files Browse the repository at this point in the history
  • Loading branch information
psxjoy committed Jan 8, 2025
1 parent 929993e commit 3a66302
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ class InstanceTest {
instance.setNamespace("testNamespace");
instance.setClusterName("testCluster");
instance.setUnit("testUnit");
instance.getControl().setPort(1234);
instance.getTransaction().setPort(4321);
instance.setControl(new Node.Endpoint("127.0.0.1", 1234));
instance.setTransaction(new Node.Endpoint("127.0.0.1", 4321));

instance.setWeight(0.5);
instance.setHealthy(false);
instance.setTerm(1);
Expand Down

0 comments on commit 3a66302

Please sign in to comment.