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 }()