Skip to content

Commit

Permalink
docs(readme): fix test example
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Jun 7, 2022
1 parent efa188d commit f255dbc
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 @@ -81,7 +81,7 @@ func TestKubernetes(t *testing.T) {
f2 := features.New("count namespaces").
WithLabel("type", "ns-count").
Assess("namespace exist", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
var nspaces corev1.Namespace
var nspaces corev1.NamespaceList
err := cfg.Client().Resources().List(context.TODO(), &nspaces)
if err != nil {
t.Fatal(err)
Expand All @@ -93,7 +93,7 @@ func TestKubernetes(t *testing.T) {
}).Feature()

// test feature
testenv.Test(f1, f2)
testenv.Test(t, f1, f2)
}
```
#### Running the test
Expand Down

0 comments on commit f255dbc

Please sign in to comment.