mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
fake cloud provider don't lock emulating delay
Change-Id: Icf0cf5d67a4c1d53556f93bbda5f286faaa456b2
This commit is contained in:
parent
5fd9a7abca
commit
bdd3e1d8c8
@ -106,11 +106,10 @@ type Route struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *Cloud) addCall(desc string) {
|
func (f *Cloud) addCall(desc string) {
|
||||||
f.addCallLock.Lock()
|
|
||||||
defer f.addCallLock.Unlock()
|
|
||||||
|
|
||||||
time.Sleep(f.RequestDelay)
|
time.Sleep(f.RequestDelay)
|
||||||
|
|
||||||
|
f.addCallLock.Lock()
|
||||||
|
defer f.addCallLock.Unlock()
|
||||||
f.Calls = append(f.Calls, desc)
|
f.Calls = append(f.Calls, desc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user