Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole committed Mar 24, 2021
1 parent 84094b6 commit 5279a0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ var _ = BeforeEach(func() {
})

func newTempDir(pattern string) (string, error) {
if dir, err := ioutil.TempDir("", pattern); err != nil {
dir, err := ioutil.TempDir("", pattern)
if err != nil {
return "", err
} else {
return filepath.EvalSymlinks(dir)
}
return filepath.EvalSymlinks(dir)
}

var _ = AfterEach(func() {
Expand Down
9 changes: 5 additions & 4 deletions test/e2e/getenvoy_extension_test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
package e2e_test

import (
"github.com/stretchr/testify/require"
"github.com/tetratelabs/getenvoy/pkg/extension/workspace/config/extension"
e2e "github.com/tetratelabs/getenvoy/test/e2e/util"
"os"
"regexp"
"testing"

"github.com/stretchr/testify/require"
"github.com/tetratelabs/getenvoy/pkg/extension/workspace/config/extension"
e2e "github.com/tetratelabs/getenvoy/test/e2e/util"
)

// TestGetEnvoyExtensionTest runs the equivalent of "getenvoy extension test" for a matrix of extension.Categories and
Expand All @@ -32,7 +33,7 @@ import (
func TestGetEnvoyExtensionTest(t *testing.T) {
const extensionName = "my.extension"
var languageToTestOutputRegexp = map[extension.Language]*regexp.Regexp{
extension.LanguageRust: regexp.MustCompile(`(?s)^.*test result: ok.*$`),
extension.LanguageRust: regexp.MustCompile(`(?s)^.*test result: ok.*$`),
extension.LanguageTinyGo: regexp.MustCompile(`(?s)^.*ok my.extension.*$`),
}

Expand Down
3 changes: 2 additions & 1 deletion test/e2e/getenvoy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
package e2e_test

import (
"github.com/stretchr/testify/require"
"testing"

"github.com/stretchr/testify/require"
)

func TestGetEnvoyVersion(t *testing.T) {
Expand Down

0 comments on commit 5279a0c

Please sign in to comment.