mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-07-21 02:51:38 +00:00
Fixed unit tests in checkpoint_test.go and conf_test.go
This commit is contained in:
parent
b0e3b05b3c
commit
f5524e0b9c
@ -198,12 +198,6 @@ var _ = Describe("Kubelet checkpoint data read operations", func() {
|
|||||||
// resourceMap = rmap
|
// 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() {
|
var _ = AfterSuite(func() {
|
||||||
|
@ -66,7 +66,7 @@ var _ = Describe("config operations", func() {
|
|||||||
]
|
]
|
||||||
}`
|
}`
|
||||||
// missing end bracket
|
// missing end bracket
|
||||||
netConf, err := LoadNetConf([]byte(conf))
|
_, err := LoadNetConf([]byte(conf))
|
||||||
Expect(err).To(HaveOccurred())
|
Expect(err).To(HaveOccurred())
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user