Create local copy to avoid potential race condition

This commit is contained in:
Mike Miranda 2023-03-29 19:50:06 +00:00
parent c3e7eca7fd
commit feba08a694

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{