mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
fix(docs): Fixing some errors in the dev-guide example. (#5662)
This commit is contained in:
parent
30cbbc0e75
commit
663d10c06e
@ -70,11 +70,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMe(t *testing.T) {
|
func TestMe(t *testing.T) {
|
||||||
hook := testutils.LogsUnderTestWithLogLeve(log.WarnLevel, t)
|
hook := testutils.LogsUnderTestWithLogLevel(log.WarnLevel, t)
|
||||||
... function under tests ...
|
... function under tests ...
|
||||||
testutils.TestHelperLogContains("example warning message", hook, t)
|
testutils.TestHelperLogContains("example warning message", hook, t)
|
||||||
// provide negative assertion
|
// provide negative assertion
|
||||||
testuitls.TestHelperLogNotContains("this message should not be shown", hook, t)
|
testutils.TestHelperLogNotContains("this message should not be shown", hook, t)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user