fetchLocksToCache -> refreshLockCache
This commit is contained in:
parent
2d42802239
commit
9e815e53b4
@ -250,7 +250,7 @@ func (c *Client) lockIdFromPath(path string) (string, error) {
|
||||
|
||||
// Fetch locked files for the current committer and cache them locally
|
||||
// This can be used to sync up locked files when moving machines
|
||||
func (c *Client) fetchLocksToCache() error {
|
||||
func (c *Client) refreshLockCache() error {
|
||||
// TODO: filters don't seem to currently define how to search for a
|
||||
// committer's email. Is it "committer.email"? For now, just iterate
|
||||
locks, err := c.SearchLocks(nil, 0, false)
|
||||
|
@ -79,7 +79,7 @@ func TestRefreshCache(t *testing.T) {
|
||||
assert.Empty(t, locks)
|
||||
|
||||
// Should load from test data, just Fred's
|
||||
err = client.fetchLocksToCache()
|
||||
err = client.refreshLockCache()
|
||||
assert.Nil(t, err)
|
||||
|
||||
locks, err = client.SearchLocks(nil, 0, true)
|
||||
|
Loading…
Reference in New Issue
Block a user