Skip to content

Commit

Permalink
fixed filecache test. #96
Browse files Browse the repository at this point in the history
  • Loading branch information
ARolek committed Oct 16, 2017
1 parent 73e2ccc commit d994eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache/filecache/filecache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ func TestWriteReadPurge(t *testing.T) {
input := bytes.NewReader(tc.expected)

// test write
if err = fc.Write(tc.key, input); err != nil {
if err = fc.Set(tc.key, input); err != nil {
t.Errorf("testcase (%v) write failed. err: %v", i, err)
continue
}

r, err := fc.Read(tc.key)
r, err := fc.Get(tc.key)
if err != nil {
t.Errorf("testcase (%v) read failed. err: %v", i, err)
continue
Expand Down

0 comments on commit d994eea

Please sign in to comment.