Skip to content

Commit 63099b4

Browse files
author
Cheng Pan
committed
Update README for sanity test using Ginkgo.
The original sample is using BeforeEach/AfterEach is a problematic way.
1 parent b36d955 commit 63099b4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/sanity/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ var _ = Describe("MyCSIDriver", func () {
3939
Context("Config A", func () {
4040
var config &sanity.Config
4141

42-
BeforeEach() {
43-
... setup driver and config...
44-
}
42+
BeforeEach(func() {
43+
//... setup driver and config...
44+
})
4545

46-
AfterEach() {
47-
...tear down driver...
48-
}
46+
AfterEach(func() {
47+
//...tear down driver...
48+
})
4949

5050
Describe("CSI sanity", func() {
5151
sanity.GinkgoTest(config)
5252
})
5353
})
5454

5555
Context("Config B", func () {
56-
...
56+
// other configs
5757
})
5858
})
5959
```

0 commit comments

Comments
 (0)