Skip to content

Commit

Permalink
Fix adding worker with mycelium to k8s (#3739)
Browse files Browse the repository at this point in the history
* Check if myceliumNetworkSeed is existed

* Remove skip from add worker test case
  • Loading branch information
samaradel authored Dec 18, 2024
1 parent b16d1c4 commit 49a091b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/grid_client/src/primitives/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Network {
return network["node_id"] === nodeId;
});
const myceliumNetworkSeed = myceliumSeeds.find(item => item.nodeId == nodeId);
if (network && network.mycelium && network.mycelium?.hex_key) {
if (network && network.mycelium && network.mycelium?.hex_key && myceliumNetworkSeed?.seed) {
if (myceliumSeeds && myceliumSeeds.length > 0 && myceliumNetworkSeed?.seed !== network.mycelium.hex_key) {
throw new ValidationError(`Another mycelium seed is used for this network ${this.name} on this ${nodeId}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/grid_client/tests/modules/kubernetes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ test("TC1231 - Kubernetes: Deploy a Kubernetes Cluster", async () => {
}
});

test.skip("TC1232 - Kubernetes: Add Worker", async () => {
test("TC1232 - Kubernetes: Add Worker", async () => {
/**********************************************
Test Suite: Grid3_Client_TS (Automated)
Test Cases: TC1232 - Kubernetes: Add Worker
Expand Down

0 comments on commit 49a091b

Please sign in to comment.