Skip to content
Snippets Groups Projects
Unverified Commit daeef98d authored by Hidde Beydals's avatar Hidde Beydals Committed by GitHub
Browse files

Merge pull request #1688 from allenporter/flux-test-main

Replace init() with TestMain()
parents 78f4dfa4 4146df1f
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,10 @@ import (
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
)
func init() {
func TestMain(m *testing.M) {
// Ensure tests print consistent timestamps regardless of timezone
os.Setenv("TZ", "UTC")
os.Exit(m.Run())
}
func readYamlObjects(objectFile string) ([]client.Object, error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment