Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YZ775 committed Dec 13, 2024
1 parent 2924b0b commit 9a0a41b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dctest/menu-ss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
tpm: true
---
kind: Node
type: ss
type: ss2
spec:
cpu: 4
memory: 10G
Expand Down
8 changes: 7 additions & 1 deletion dctest/sabakan_state_setter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ func testSabakanStateSetter() {
err = json.Unmarshal(stdout, &ssMachines)
Expect(err).ShouldNot(HaveOccurred(), "data=%s", stdout)

availableNodes := len(csMachines) + len(ssMachines)
stdout, stderr, err = execAt(bootServers[0], "sabactl", "machines", "get", "--role=ss2")
Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)
var ss2Machines []sabakan.Machine
err = json.Unmarshal(stdout, &ss2Machines)
Expect(err).ShouldNot(HaveOccurred(), "data=%s", stdout)

availableNodes := len(csMachines) + len(ssMachines) + len(ss2Machines)
Expect(availableNodes).NotTo(Equal(0))

By("checking all serf members are active")
Expand Down

0 comments on commit 9a0a41b

Please sign in to comment.