From 8d9bb3518e93365ec481f01e81b4a88870e962bf Mon Sep 17 00:00:00 2001
From: Jacob Geiger <jgeiger@google.com>
Date: Wed, 19 Apr 2017 12:02:13 -0700
Subject: [PATCH] Fix a system test TODO (#3314)

This should prevent the (as of yet, unexperienced) error case where
the API deletes the acked messages before we have a chance to seek
to them.
---
 pubsub/tests/system.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pubsub/tests/system.py b/pubsub/tests/system.py
index 41ae43f1f55d..acdbde0dffca 100644
--- a/pubsub/tests/system.py
+++ b/pubsub/tests/system.py
@@ -360,7 +360,8 @@ def test_seek(self):
         self.to_delete.append(topic)
 
         SUBSCRIPTION_NAME = 'subscribing-to-seek' + unique_resource_id('-')
-        subscription = topic.subscription(SUBSCRIPTION_NAME)
+        subscription = topic.subscription(
+            SUBSCRIPTION_NAME, retain_acked_messages=True)
         self.assertFalse(subscription.exists())
         subscription.create()
         self.to_delete.append(subscription)