fetchLocksToCache -> refreshLockCache

This commit is contained in:
Steve Streeting 2016-12-14 09:46:36 +00:00
parent 2d42802239
commit 9e815e53b4
2 changed files with 2 additions and 2 deletions

@ -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)