From 064de65cf46d00c3c67e38efe617bde947061b22 Mon Sep 17 00:00:00 2001 From: Jake Coffman Date: Thu, 16 Nov 2023 20:45:48 -0600 Subject: [PATCH] debug hang in actions --- internal/server/input.go | 1 + internal/server/input_test.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/internal/server/input.go b/internal/server/input.go index f71e117..52a0145 100644 --- a/internal/server/input.go +++ b/internal/server/input.go @@ -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) } diff --git a/internal/server/input_test.go b/internal/server/input_test.go index f7cf27d..06ad867 100644 --- a/internal/server/input_test.go +++ b/internal/server/input_test.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "github.com/dependabot/cli/internal/model" + "log" "net" "net/http" "os" @@ -29,6 +30,7 @@ func TestInput(t *testing.T) { if err != nil { t.Errorf(err.Error()) } + log.Println("sending input on channel") inputCh <- input }()