From a1c0862047c47f02fb07bcf01f35e3cf5c2266d3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 25 May 2018 17:14:56 -0400 Subject: Add basic stats --- integration_test.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'integration_test.go') diff --git a/integration_test.go b/integration_test.go index 90aad560b..aa2b99850 100644 --- a/integration_test.go +++ b/integration_test.go @@ -85,15 +85,17 @@ func deno(inputFn string) (actual []byte, cachedir string, err error) { } func integrationTestSetup() { - startServer() - cwd, err := os.Getwd() - if err != nil { - panic(err) + if denoFn == "" { + startServer() + cwd, err := os.Getwd() + if err != nil { + panic(err) + } + denoFn = path.Join(cwd, "deno") } - denoFn = path.Join(cwd, "deno") } -func TestIntegration(t *testing.T) { +func TestIntegrationFiles(t *testing.T) { integrationTestSetup() outFiles := listTestFiles() for _, outFile := range outFiles { @@ -103,7 +105,7 @@ func TestIntegration(t *testing.T) { } } -func TestUrlArgs(t *testing.T) { +func TestIntegrationUrlArgs(t *testing.T) { integrationTestSetup() // Using good port 4545 -- cgit v1.2.3