From 24d96151f457f358bf5577757de9790fcaee91dc Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 10 Aug 2018 08:19:32 -0400 Subject: [PATCH] Test changes. --- .gitignore | 2 ++ test/tidy/main.go | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d13c37d..f03cee5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ test/basic/basic test/basic/pgen.go test/basic/pgen_aaa.go test/basic/db +test/tidy/db +test/tidy/pgen.go diff --git a/test/tidy/main.go b/test/tidy/main.go index 65f4392..25a6d48 100644 --- a/test/tidy/main.go +++ b/test/tidy/main.go @@ -9,7 +9,7 @@ import ( func main() { tc := persist.TidyConfig{ Interval: 2 * time.Second, - Func:persist.ExpireAfter(-5 * time.Second), + Func: persist.ExpireAfter(-5 * time.Second), } persist.Init(persist.Config{Tidy: tc}) @@ -20,7 +20,9 @@ func main() { x.Set(3) persist.Commit() fmt.Println(x.History()) - time.Sleep(time.Second * 15) + time.Sleep(time.Second * 3) + fmt.Println(x.History()) + time.Sleep(time.Second * 3) fmt.Println(x.History()) persist.Shutdown() }