From b4e720bf92a3b10bcbd736cf496688b589636e32 Mon Sep 17 00:00:00 2001
From: Andreas Braun <git@alcaeus.org>
Date: Tue, 29 Oct 2019 14:12:37 +0100
Subject: [PATCH] PHPLIB-490: Update spec tests for primary stepdown

---
 tests/SpecTests/PrimaryStepDownSpecTest.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/SpecTests/PrimaryStepDownSpecTest.php b/tests/SpecTests/PrimaryStepDownSpecTest.php
index 2650512..ca78c6f 100644
--- a/tests/SpecTests/PrimaryStepDownSpecTest.php
+++ b/tests/SpecTests/PrimaryStepDownSpecTest.php
@@ -110,6 +110,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
 
         // Verify that the connection pool has been cleared
         $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
+
+        // Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
+        $result = $this->insertDocuments(1);
+        $this->assertSame(1, $result->getInsertedCount());
     }
 
     /**
@@ -142,6 +146,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
 
         // Verify that the connection pool has been cleared
         $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
+
+        // Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
+        $result = $this->insertDocuments(1);
+        $this->assertSame(1, $result->getInsertedCount());
     }
 
     /**
@@ -174,6 +182,10 @@ class PrimaryStepDownSpecTest extends FunctionalTestCase
 
         // Verify that the connection pool has been cleared
         $this->assertSame($totalConnectionsCreated + 1, $this->getTotalConnectionsCreated());
+
+        // Execute an insert into the test collection of a {test: 1} document and verify that it succeeds.
+        $result = $this->insertDocuments(1);
+        $this->assertSame(1, $result->getInsertedCount());
     }
 
     /**
-- 
2.18.1