diff --git a/executor/test/oomtest/oom_test.go b/executor/test/oomtest/oom_test.go index ebae861cbc0fc..50677dfa03189 100644 --- a/executor/test/oomtest/oom_test.go +++ b/executor/test/oomtest/oom_test.go @@ -223,6 +223,8 @@ type oomCapture struct { } func (h *oomCapture) AddMessageFilter(vals ...string) { + h.mu.Lock() + defer h.mu.Unlock() for _, val := range vals { h.messageFilter.Insert(val) }