mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Create local copy to avoid potential race condition
This commit is contained in:
parent
c3e7eca7fd
commit
feba08a694
@ -160,6 +160,7 @@ func TestMonitorShutdown(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tests {
|
for _, tc := range tests {
|
||||||
|
tc := tc
|
||||||
t.Run(tc.desc, func(t *testing.T) {
|
t.Run(tc.desc, func(t *testing.T) {
|
||||||
fakeSystemBus := &fakeSystemDBus{}
|
fakeSystemBus := &fakeSystemDBus{}
|
||||||
bus := DBusCon{
|
bus := DBusCon{
|
||||||
|
Loading…
Reference in New Issue
Block a user