mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
build(go): switch to go 1.21 (#2049)
Also update to the latest swaggo version, as the previous one did not work with go 1.21 Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -947,7 +947,9 @@ func TestCookiestoreCleanup(t *testing.T) {
|
||||
err = os.WriteFile(sessionPath, []byte("session"), storageConstants.DefaultFilePerms)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
err = os.Chtimes(sessionPath, time.Time{}, time.Time{})
|
||||
changeTime := time.Now().Add(-4 * time.Hour)
|
||||
|
||||
err = os.Chtimes(sessionPath, changeTime, changeTime)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
imgStore := local.NewImageStore(rootDir, false, false, log, metrics, nil, nil)
|
||||
|
||||
Reference in New Issue
Block a user