Skip to content

Commit

Permalink
e2e: Clean up test instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 13, 2023
1 parent 2084c79 commit c224fc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
-
name: Compile tusd binary
run: |
go build -o $TUSD_BINARY -x ./cmd/tusd/main.go
go build -o $TUSD_BINARY ./cmd/tusd/main.go
shell: bash

-
name: Test code
run: |
go test ./pkg/...
go test -v -p=1 ./internal/...
go test ./internal/...
shell: bash

-
Expand Down
5 changes: 0 additions & 5 deletions internal/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ func TestMain(m *testing.M) {
// Run actual tests
exitVal := m.Run()

fmt.Println("After run")

server.Shutdown()
fmt.Println("After shutdown")
os.Exit(exitVal)
}

Expand Down Expand Up @@ -734,7 +731,6 @@ func TestStopUpload(t *testing.T) {

// Start a hook server that always instructs tusd to stop the upload.
hookServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
log.Println("Hooook")
w.Write([]byte(`{"StopUpload":true}`))
}))
defer hookServer.Close()
Expand Down Expand Up @@ -863,7 +859,6 @@ func spawnTusd(ctx context.Context, t *testing.T, args ...string) (endpoint stri
scanner := bufio.NewScanner(stdout)

for scanner.Scan() {
// fmt.Println(scanner.Text()) // Println will add back the final '\n'
match := TUSD_ENDPOINT_RE.FindStringSubmatch(scanner.Text())
if match != nil {
endpoint = match[1]
Expand Down

0 comments on commit c224fc2

Please sign in to comment.