From bd3bd93f048f8fd8717ebd45e8b69835e8c4ab12 Mon Sep 17 00:00:00 2001
From: Garet Halliday <me@garet.holiday>
Date: Thu, 14 Sep 2023 14:25:03 -0500
Subject: [PATCH] 71 chained pggats works

---
 test/tester_test.go | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/test/tester_test.go b/test/tester_test.go
index cfdb1b47..9ba07394 100644
--- a/test/tester_test.go
+++ b/test/tester_test.go
@@ -47,11 +47,20 @@ func TestTester(t *testing.T) {
 		Password: password,
 	}
 
-	for i := 0; i < 10; i++ {
+	for i := 0; i < 70; i++ {
 		var g gat.PoolsMap
-		p := pool.NewPool(transaction.Apply(pool.Options{
+
+		var options = pool.Options{
 			Credentials: creds,
-		}))
+		}
+		if i%2 == 0 {
+			options = transaction.Apply(options)
+		} else {
+			options.ServerResetQuery = "DISCARD ALL"
+			options = session.Apply(options)
+		}
+
+		p := pool.NewPool(options)
 		p.AddRecipe("runner", recipe.NewRecipe(recipe.Options{
 			Dialer: control,
 		}))
-- 
GitLab