Skip to content

Commit

Permalink
update common memory ns/nse tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
  • Loading branch information
wazsone committed Feb 2, 2023
1 parent 3c0c657 commit ea64870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/registry/common/memory/ns_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *memoryNSServer) Find(query *registry.NetworkServiceQuery, server regist
var err error
for ; err == nil; err = s.receiveEvent(query, server, eventCh) {
}
if err.Error() != io.EOF.Error() {
if errors.Cause(err).Error() != io.EOF.Error() {
return err
}
return next.NetworkServiceRegistryServer(server.Context()).Find(query, server)
Expand Down
2 changes: 1 addition & 1 deletion pkg/registry/common/memory/nse_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (s *memoryNSEServer) Find(query *registry.NetworkServiceEndpointQuery, serv
var err error
for ; err == nil; err = s.receiveEvent(query, server, eventCh) {
}
if err.Error() != io.EOF.Error() {
if errors.Cause(err).Error() != io.EOF.Error() {
return err
}
return nil
Expand Down

0 comments on commit ea64870

Please sign in to comment.