Skip to content

Commit

Permalink
Update tls.go
Browse files Browse the repository at this point in the history
Add the t.Helper()  function in line with other test code.
  • Loading branch information
lhaig committed Nov 14, 2022
1 parent 8c706bb commit 699e2ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testutil/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func IsValidSigner(t *testing.T, keyPath string) bool {
// directory immediately and defer switching back in one line of test
// code.
func SwitchToTempDir(t *testing.T, testDir string) func() {
t.Helper()

previousDirectory, err := os.Getwd()
require.NoError(t, err)
require.NoError(t, os.Chdir(testDir))
Expand Down

0 comments on commit 699e2ef

Please sign in to comment.