Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fseval: not nanosecond for mock test #132

Merged
merged 1 commit into from
Jun 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions fseval_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package mtree

import (
"encoding/json"
"io/ioutil"
"os"
"path/filepath"
"testing"
"time"
)

var mockTime = time.Unix(1337888823, 88288518233)
var mockTime = time.Unix(1337888823, 0)

// Here be some dodgy testing. In particular, we have to mess around with some
// of the FsEval functions. In particular, we change all of the FileInfos to a
Expand Down Expand Up @@ -155,6 +156,11 @@ func TestCheckFsEval(t *testing.T) {
t.Fatal(err)
}
if len(res) > 0 {
t.Errorf("%#v", res)
buf, err := json.MarshalIndent(res, "", " ")
if err != nil {
t.Errorf("%#v", res)
} else {
t.Errorf("%s", buf)
}
}
}