Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
f-blass committed May 21, 2024
1 parent afa9d17 commit 211429f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration/shared/isolated/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package isolated

import (
"io/ioutil"
"os"
"path/filepath"
"time"

helpers "code.cloudfoundry.org/cli/integration/helpers"
. "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -43,6 +45,9 @@ var _ = Describe("Config", func() {
tmpFile, err := ioutil.TempFile(configDir, "temp-config")
Expect(err).ToNot(HaveOccurred())
tmpFile.Close()
oldTime := time.Now().Add(-time.Minute * 10)
err = os.Chtimes(tmpFile.Name(), oldTime, oldTime)
Expect(err).ToNot(HaveOccurred())
}
})

Expand Down

0 comments on commit 211429f

Please sign in to comment.