Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
mccutchen committed Nov 25, 2023
1 parent f66e528 commit d45c7b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ buildtests:
.PHONY: buildtests

clean:
rm -rf $(DIST_PATH) $(COVERAGE_PATH)
rm -rf $(DIST_PATH) $(COVERAGE_PATH) .integrationtests
.PHONY: clean


Expand Down
8 changes: 7 additions & 1 deletion httpbin/websocket/websocket_autobahn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@ func runCmd(t *testing.T, cmd *exec.Cmd) {

func newTestDir(t *testing.T) string {
t.Helper()
testDir, err := filepath.Abs(path.Join(".integrationtests", fmt.Sprintf("autobahn-test-%d", time.Now().Unix())))

// package tests are run with the package as the working directory, but we
// want to store our integration test output in the repo root
testDir, err := filepath.Abs(path.Join(
"..", "..", ".integrationtests", fmt.Sprintf("autobahn-test-%d", time.Now().Unix()),
))

assert.NilError(t, err)
assert.NilError(t, os.MkdirAll(testDir, 0o755))
return testDir
Expand Down

0 comments on commit d45c7b2

Please sign in to comment.