diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index cc7900ed246..0d6406bd321 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -147,6 +147,8 @@
maven-failsafe-plugin
3.5.2
+ 10
+ false
java-sample-integration-tests
java-client-mr-integration-tests
@@ -157,6 +159,9 @@
mysample
quick-db
+
+ **/SpannerSampleIT.java
+
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 3bf1c4779cf..772e830d5ef 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -146,6 +146,8 @@
maven-failsafe-plugin
3.5.2
+ 10
+ false
java-sample-integration-tests
java-client-mr-integration-tests
@@ -157,6 +159,9 @@
mysample-instance
quick-db
+
+ **/SpannerSampleIT.java
+
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index df0488ac116..a137325f545 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -177,6 +177,8 @@
maven-failsafe-plugin
3.5.2
+ 10
+ false
java-sample-integration-tests
java-client-mr-integration-tests
@@ -187,6 +189,9 @@
mysample
quick-db
+
+ **/SpannerSampleIT.java
+
diff --git a/samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java b/samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java
index d59152b407c..cb04f9b68ff 100644
--- a/samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java
+++ b/samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java
@@ -19,6 +19,7 @@
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertTrue;
+import com.example.spanner.helper.SlowTest;
import com.google.cloud.Timestamp;
import com.google.cloud.spanner.DatabaseId;
import com.google.cloud.spanner.ErrorCode;
@@ -51,12 +52,14 @@
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Unit tests for {@code SpannerSample} */
@RunWith(JUnit4.class)
@SuppressWarnings("checkstyle:abbreviationaswordinname")
+@Category(SlowTest.class)
public class SpannerSampleIT extends SampleTestBaseV2 {
private static final int DBID_LENGTH = 20;
diff --git a/samples/snippets/src/test/java/com/example/spanner/admin/archived/SpannerSampleIT.java b/samples/snippets/src/test/java/com/example/spanner/admin/archived/SpannerSampleIT.java
index 66410cce4d3..d79ee069111 100644
--- a/samples/snippets/src/test/java/com/example/spanner/admin/archived/SpannerSampleIT.java
+++ b/samples/snippets/src/test/java/com/example/spanner/admin/archived/SpannerSampleIT.java
@@ -20,6 +20,7 @@
import static org.junit.Assert.assertTrue;
import com.example.spanner.SampleRunner;
+import com.example.spanner.helper.SlowTest;
import com.google.cloud.Timestamp;
import com.google.cloud.spanner.Backup;
import com.google.cloud.spanner.BackupId;
@@ -48,6 +49,7 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.threeten.bp.LocalDate;
@@ -56,6 +58,7 @@
/** Unit tests for {@code SpannerSample} */
@RunWith(JUnit4.class)
@SuppressWarnings("checkstyle:abbreviationaswordinname")
+@Category(SlowTest.class)
public class SpannerSampleIT {
private static final int DBID_LENGTH = 20;
// The instance needs to exist for tests to pass.