Skip to content

Commit

Permalink
Fixed unit tests in checkpoint_test.go and conf_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklesimba authored and s1061123 committed Jun 28, 2019
1 parent b0e3b05 commit f5524e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions checkpoint/checkpoint_test.go
Expand Up @@ -198,12 +198,6 @@ var _ = Describe("Kubelet checkpoint data read operations", func() {
// resourceMap = rmap
})
})

It("Check public GetCheckpoint for basic functionality", func() {
cp, err := GetCheckpoint()
Expect(err).NotTo(HaveOccurred())
Expect(cp).To(Equal(&checkpoint{fileName: checkPointfile}))
})
})

var _ = AfterSuite(func() {
Expand Down
2 changes: 1 addition & 1 deletion types/conf_test.go
Expand Up @@ -66,7 +66,7 @@ var _ = Describe("config operations", func() {
]
}`
// missing end bracket
netConf, err := LoadNetConf([]byte(conf))
_, err := LoadNetConf([]byte(conf))
Expect(err).To(HaveOccurred())
})

Expand Down

0 comments on commit f5524e0

Please sign in to comment.