1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

test: remove unstable test item

This commit is contained in:
dudaodong
2023-04-26 18:14:27 +08:00
parent 42ec189995
commit 99cb1b13a3
4 changed files with 23 additions and 21 deletions

View File

@@ -247,16 +247,16 @@ func ExampleFileSize() {
// <nil>
}
func ExampleMTime() {
mtime, err := MTime("./testdata/test.txt")
// func ExampleMTime() {
// mtime, err := MTime("./testdata/test.txt")
fmt.Println(mtime)
fmt.Println(err)
// fmt.Println(mtime) // 1682478195 (unix timestamp)
// fmt.Println(err)
// Output:
// 1682478195
// <nil>
}
// // Output:
// // 1682478195
// // <nil>
// }
func ExampleSha() {
sha1, err := Sha("./testdata/test.txt", 1)

View File

@@ -267,9 +267,9 @@ func TestMTime(t *testing.T) {
assert := internal.NewAssert(t, "TestMTime")
mtime, err := MTime("./testdata/test.txt")
t.Log("TestMTime", mtime)
assert.IsNil(err)
assert.Equal(int64(1682478195), mtime)
// assert.Equal(int64(1682478195), mtime)
}
func TestSha(t *testing.T) {