fix: failing test

This commit is contained in:
2021-11-27 08:02:49 +01:00
parent 4c6483d971
commit d997050e8d
+1 -1
View File
@@ -175,7 +175,7 @@ func TestServer(t *testing.T) {
args: args{
store: func(t *testing.T) StoreFunc {
return func(path string, content io.Reader) error {
assert.Equal(t, fmt.Sprintf("%s/588b41ebf261820104615b83201c729bd16016d6e43649b28b0ef77d54ca5aaf8da0ce74ae3f20a4", time.Now().Format("20060102")), path)
assert.Equal(t, "20211125/588b41ebf261820104615b83201c729bd16016d6e43649b28b0ef77d54ca5aaf8da0ce74ae3f20a4", path)
temp, err := ioutil.ReadAll(content)
assert.NoError(t, err)
assert.Equal(t, "abc", string(temp))