Skip to content

Commit

Permalink
service/dap: fix compile error from merge conflict (#2818)
Browse files Browse the repository at this point in the history
Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
  • Loading branch information
polinasok and polinasok committed Dec 8, 2021
1 parent a4ac69e commit 2f13672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dlv/dlv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ func TestRemoteDAPClientAfterContinue(t *testing.T) {
c.ContinueRequest(1)
c.ExpectContinueResponse(t)
c.DisconnectRequest()
c.ExpectOutputEventClosingClient(t)
c.ExpectOutputEventClosingClient(t, "running")
c.ExpectDisconnectResponse(t)
c.ExpectTerminatedEvent(t)
c.Close()
Expand Down
2 changes: 1 addition & 1 deletion service/dap/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ func (s *Session) address() string {
if s.config.Listener != nil {
return s.config.Listener.Addr().String()
}
if netconn, ok := s.conn.(net.Conn); ok {
if netconn, ok := s.conn.ReadWriteCloser.(net.Conn); ok {
return netconn.LocalAddr().String()
}
return ""
Expand Down

0 comments on commit 2f13672

Please sign in to comment.