Skip to content

Commit

Permalink
make MockSessionManager's ShowProcessList consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysan committed Dec 16, 2022
1 parent b931a11 commit 044d371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testkit/mocksessionmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func (msm *MockSessionManager) ShowProcessList() map[uint64]*util.ProcessInfo {
ret[connID] = pi.ShowProcess()
}
msm.mu.Unlock()
if msm.Dom != nil {
for connID, pi := range msm.Dom.SysProcTracker().GetSysProcessList() {
ret[connID] = pi
}
}
return ret
}

Expand Down

0 comments on commit 044d371

Please sign in to comment.