Closed Halfi closed 3 years ago
Hello! In rare case it could produce race condition with disabled field in Mocker struct.
Mocker
It could case when decrement() (https://github.com/h2non/gock/blob/v1.1.1/mock.go#L144) and Disabled() (https://github.com/h2non/gock/blob/v1.1.1/mock.go#L67) called in same time.
decrement()
Disabled()
Hello! In rare case it could produce race condition with disabled field in
Mocker
struct.It could case when
decrement()
(https://github.com/h2non/gock/blob/v1.1.1/mock.go#L144) andDisabled()
(https://github.com/h2non/gock/blob/v1.1.1/mock.go#L67) called in same time.