Merge pull request #116994 from mmiranda96/fix/116505

Create local copy to avoid potential race condition
This commit is contained in:
Kubernetes Prow Robot 2023-05-23 19:06:49 -07:00 committed by GitHub
commit de12f89cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,7 @@ func TestMonitorShutdown(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.desc, func(t *testing.T) {
fakeSystemBus := &fakeSystemDBus{}
bus := DBusCon{