diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-25 17:14:56 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-25 17:14:56 -0400 |
commit | a1c0862047c47f02fb07bcf01f35e3cf5c2266d3 (patch) | |
tree | 32731f979e639120ffd0640a71789f359560848f /integration_test.go | |
parent | 59534fb9e357b08df47a6923f036090e82017396 (diff) |
Add basic stats
Diffstat (limited to 'integration_test.go')
-rw-r--r-- | integration_test.go | 16 |
1 files changed, 9 insertions, 7 deletions
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 |