mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
test: add t.Helper() calls to test helper functions (#7351)
This commit is contained in:
@@ -43,6 +43,7 @@ func TestMultipleListenerMock(t *testing.T) {
|
||||
}
|
||||
|
||||
func testListenersCalled(t *testing.T, listenerNames []string, outputs []string) {
|
||||
t.Helper()
|
||||
for _, name := range listenerNames {
|
||||
err := RegisterListener(NewMockListener(name))
|
||||
if err != nil {
|
||||
|
||||
@@ -8,6 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func getPEMFiles(t *testing.T) (cert, key, ca string) {
|
||||
t.Helper()
|
||||
tempDir, err := test.WritePEMFiles(t)
|
||||
if err != nil {
|
||||
t.Fatalf("Could not write PEM files: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user