|
@@ -28,7 +28,7 @@ func TestChtimesLinux(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
stat := f.Sys().(*syscall.Stat_t)
|
|
stat := f.Sys().(*syscall.Stat_t)
|
|
- aTime := time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec))
|
|
|
|
|
|
+ aTime := time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec)) // nolint: unconvert
|
|
if aTime != unixEpochTime {
|
|
if aTime != unixEpochTime {
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
}
|
|
}
|
|
@@ -42,7 +42,7 @@ func TestChtimesLinux(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
- aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec))
|
|
|
|
|
|
+ aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec)) // nolint: unconvert
|
|
if aTime != unixEpochTime {
|
|
if aTime != unixEpochTime {
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
}
|
|
}
|
|
@@ -56,7 +56,7 @@ func TestChtimesLinux(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
- aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec))
|
|
|
|
|
|
+ aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec)) // nolint: unconvert
|
|
if aTime != unixEpochTime {
|
|
if aTime != unixEpochTime {
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
t.Fatalf("Expected: %s, got: %s", unixEpochTime, aTime)
|
|
}
|
|
}
|
|
@@ -70,7 +70,7 @@ func TestChtimesLinux(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
- aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec))
|
|
|
|
|
|
+ aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec)) // nolint: unconvert
|
|
if aTime != afterUnixEpochTime {
|
|
if aTime != afterUnixEpochTime {
|
|
t.Fatalf("Expected: %s, got: %s", afterUnixEpochTime, aTime)
|
|
t.Fatalf("Expected: %s, got: %s", afterUnixEpochTime, aTime)
|
|
}
|
|
}
|
|
@@ -84,7 +84,7 @@ func TestChtimesLinux(t *testing.T) {
|
|
}
|
|
}
|
|
|
|
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
stat = f.Sys().(*syscall.Stat_t)
|
|
- aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec))
|
|
|
|
|
|
+ aTime = time.Unix(int64(stat.Atim.Sec), int64(stat.Atim.Nsec)) // nolint: unconvert
|
|
if aTime.Truncate(time.Second) != unixMaxTime.Truncate(time.Second) {
|
|
if aTime.Truncate(time.Second) != unixMaxTime.Truncate(time.Second) {
|
|
t.Fatalf("Expected: %s, got: %s", unixMaxTime.Truncate(time.Second), aTime.Truncate(time.Second))
|
|
t.Fatalf("Expected: %s, got: %s", unixMaxTime.Truncate(time.Second), aTime.Truncate(time.Second))
|
|
}
|
|
}
|