github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/hk/housekeeper_suite_test.go (about) 1 // Package hk provides mechanism for registering cleanup 2 // functions which are invoked at specified intervals. 3 /* 4 * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. 5 */ 6 package hk_test 7 8 import ( 9 "testing" 10 11 "github.com/NVIDIA/aistore/hk" 12 . "github.com/onsi/ginkgo/v2" 13 . "github.com/onsi/gomega" 14 ) 15 16 func TestHousekeeper(t *testing.T) { 17 hk.TestInit() 18 go hk.DefaultHK.Run() 19 hk.WaitStarted() 20 RegisterFailHandler(Fail) 21 RunSpecs(t, t.Name()) 22 }