Skip to content

Commit

Permalink
remove m.Called() from Obtain()
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.rieckhof committed Nov 17, 2024
1 parent a35d417 commit 75e6f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/failover/redislock_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (m *MockRedisLockClient) Obtain(ctx context.Context, key string, ttl time.D
failTime: m.failTime,
failPeriod: m.failPeriod,
}
m.Called(ctx, key, ttl, opt)

return mockLock.Lock, nil
}

Expand Down

0 comments on commit 75e6f63

Please sign in to comment.