Skip to content

Commit

Permalink
debug hang in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Nov 17, 2023
1 parent 5542fb5 commit 064de65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type credServer struct {

// the server receives one payload and shuts itself down
func (s *credServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Println("received input")
if err := json.NewDecoder(r.Body).Decode(&s.data); err != nil {
panic(err)
}
Expand Down
2 changes: 2 additions & 0 deletions internal/server/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"github.com/dependabot/cli/internal/model"
"log"
"net"
"net/http"
"os"
Expand All @@ -29,6 +30,7 @@ func TestInput(t *testing.T) {
if err != nil {
t.Errorf(err.Error())
}
log.Println("sending input on channel")
inputCh <- input
}()

Expand Down

0 comments on commit 064de65

Please sign in to comment.