Skip to content

Commit

Permalink
Change test wording
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan committed Sep 17, 2024
1 parent 86b1836 commit 126519b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/metal/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ var _ = Describe("Endpoint", func() {
})

It("Should return error if config file does not exist", func() {
Expect(func() error {
err := loadConfig("do-not-exist.json")
return err
}).ShouldNot(BeNil())
err := loadConfig("does-not-exist.json")
Expect(err).NotTo(BeNil())
})

It("Should return empty machine list if the config file is malformed", func() {
Expand Down

0 comments on commit 126519b

Please sign in to comment.