Skip to content

Commit

Permalink
ASdf
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Rash <15827604+jordan-rash@users.noreply.github.com>
  • Loading branch information
jordan-rash committed Jun 19, 2024
1 parent f479cc9 commit e687b57
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions spec/node_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,14 @@ var _ = Describe("nex node", func() {
BeforeEach(func() {
nodeConfig.DefaultResourceDir = filepath.Join(os.TempDir(), fmt.Sprintf("%d-non-existent-nex-resource-dir", _fixtures.seededRand.Int()))
_, err := os.Stat(nodeConfig.DefaultResourceDir)
Expect(err).To(Not(BeNil()))
Expect(os.IsNotExist(err)).To(BeTrue())
})

JustBeforeEach(func() {
It("should run preflight and create the default_resource_dir", func(ctx SpecContext) {
err := nexnode.CmdPreflight(opts, nodeOpts, ctxx, cancel, log)
Expect(err).To(BeNil())
})

It("should create the default_resource_dir", func(ctx SpecContext) {
_, err := os.Stat(nodeConfig.DefaultResourceDir)
Expect(err).To(BeNil())
_, err = os.Stat(nodeConfig.DefaultResourceDir)
Expect(os.IsNotExist(err)).To(BeFalse())
})
})

Expand Down

0 comments on commit e687b57

Please sign in to comment.