Skip to content

Commit

Permalink
Write fresh config just before each node spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Feb 15, 2024
1 parent 5aa4c86 commit 7e7b10a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ var _ = Describe("nex node", func() {
})

JustBeforeEach(func() {
cfg, _ := json.Marshal(nodeConfig)
_ = os.WriteFile(nodeOpts.ConfigFilepath, cfg, 0644)

_ = nexnode.CmdPreflight(opts, nodeOpts, ctxx, cancel, log)
node, _ = nexnode.NewNode(opts, nodeOpts, ctxx, cancel, log)
go node.Start()
Expand Down Expand Up @@ -362,10 +365,6 @@ var _ = Describe("nex node", func() {
})

JustBeforeEach(func() {
nodeConfig.DefaultResourceDir = validResourceDir
_ = os.Mkdir(validResourceDir, 0755)
nodeOpts.ForceDepInstall = true

manager = nodeProxy.MachineManager()
managerProxy = nexnode.NewMachineManagerProxyWith(manager)

Expand Down

0 comments on commit 7e7b10a

Please sign in to comment.