test: make tests stable (#1968)

* test: make tests stable

* test: fix fails
This commit is contained in:
Kevin Wan
2022-06-04 23:46:29 +08:00
committed by GitHub
parent f366e1d936
commit af05219b70
5 changed files with 15 additions and 14 deletions

View File

@@ -328,9 +328,5 @@ func gzipFile(file string) error {
return err
}
// ignore errors on remove, it most happens on unit tests,
// it caused lots of troubles on GitHub actions.
// and even on production, remove errors are not important.
_ = os.Remove(file)
return nil
return os.Remove(file)
}