diff --git a/server/server/server.go b/server/server/server.go index 584836de6..a8ebbff7c 100644 --- a/server/server/server.go +++ b/server/server/server.go @@ -374,8 +374,11 @@ func (s *Server) startLocalModeServer() error { } // TODO: Close and delete socket file on shutdown - if err := syscall.Unlink(s.config.LocalModeSocketLocation); err != nil { - s.logger.Error("Unable to unlink socket.", mlog.Err(err)) + // Delete existing socket if it exists + if _, err := os.Stat(s.config.LocalModeSocketLocation); err == nil { + if err := syscall.Unlink(s.config.LocalModeSocketLocation); err != nil { + s.logger.Error("Unable to unlink socket.", mlog.Err(err)) + } } socket := s.config.LocalModeSocketLocation diff --git a/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap b/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap index 67e84755a..4dcaea2de 100644 --- a/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap +++ b/webapp/src/components/properties/lastModifiedAt/__snapshots__/lastModifiedAt.test.tsx.snap @@ -5,7 +5,7 @@ exports[`componnets/properties/lastModifiedAt should match snapshot 1`] = `
- June 15, 4:22 PM + June 15, 2021, 4:22 PM
`; diff --git a/webapp/src/components/table/__snapshots__/table.test.tsx.snap b/webapp/src/components/table/__snapshots__/table.test.tsx.snap index f487924e0..293d4ae95 100644 --- a/webapp/src/components/table/__snapshots__/table.test.tsx.snap +++ b/webapp/src/components/table/__snapshots__/table.test.tsx.snap @@ -219,7 +219,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 1`
- June 15, 4:22 PM + June 15, 2021, 4:22 PM
@@ -307,7 +307,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 1`
- June 15, 4:22 PM + June 15, 2021, 4:22 PM
@@ -995,7 +995,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedAt 1`
- June 20, 12:22 PM + June 20, 2021, 12:22 PM
@@ -1083,7 +1083,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedAt 1`
- June 22, 11:23 AM + June 22, 2021, 11:23 AM