Add lock to fake handler to avoid races.
This commit is contained in:
@@ -72,6 +72,8 @@ func (f *fakeError) Errorf(format string, args ...interface{}) {
|
||||
f.errors = append(f.errors, format)
|
||||
}
|
||||
|
||||
func (f *fakeError) Logf(format string, args ...interface{}) {}
|
||||
|
||||
func TestFakeHandlerWrongPath(t *testing.T) {
|
||||
handler := FakeHandler{}
|
||||
server := httptest.NewServer(&handler)
|
||||
|
Reference in New Issue
Block a user