Skip to content

Commit

Permalink
feat: Add a lock to filechangecapture in test
Browse files Browse the repository at this point in the history
  • Loading branch information
devanbenz committed Jan 7, 2025
1 parent 5b7896a commit 8996d14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ func (m *mockWatcher) GetLogPath() string {
}

func (m *mockWatcher) FileChangeCapture() error {
m.Mu.Lock()
defer m.Mu.Unlock()
err := m.Remove(m.path)
if err != nil {
return err
Expand Down

0 comments on commit 8996d14

Please sign in to comment.