Skip to content

Commit

Permalink
Fix function call errors in README
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff-dev committed May 30, 2022
1 parent df2ab4b commit 2ad0d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Use a Go test function to define features to be tested as shown below:
```go
func TestKubernetes(t *testing.T) {
f1 := features.New("count pod").
WithLabel("type", "pod-count")
WithLabel("type", "pod-count").
Assess("pods from kube-system", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
var pods corev1.PodList
err := cfg.Client().Resources("kube-system").List(context.TODO(), &pods)
Expand All @@ -79,7 +79,7 @@ func TestKubernetes(t *testing.T) {
}).Feature()

f2 := features.New("count namespaces").
WithLabel("type", "ns-count")
WithLabel("type", "ns-count").
Assess("namespace exist", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
var nspaces corev1.Namespace
err := cfg.Client().Resources().List(context.TODO(), &nspaces)
Expand Down

0 comments on commit 2ad0d74

Please sign in to comment.