Skip to content

Commit

Permalink
fixed PG TestDisableCache
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <avelinorun@gmail.com>
  • Loading branch information
avelino committed Dec 23, 2021
1 parent db8f849 commit a06ec40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/postgres/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ func BenchmarkPrepare(b *testing.B) {
}

func TestDisableCache(t *testing.T) {
os.Setenv("PREST_CACHE_ENABLE", "false")
os.Setenv("PREST_PG_CACHE", "false")
config.Load()
Load()
ClearStmt()
Expand All @@ -1145,7 +1145,7 @@ func TestDisableCache(t *testing.T) {
if ok {
t.Error("has query in cache")
}
os.Setenv("PREST_CACHE_ENABLE", "true")
os.Setenv("PREST_PG_CACHE", "true")
}

func TestParseBatchInsertRequest(t *testing.T) {
Expand Down

0 comments on commit a06ec40

Please sign in to comment.