Skip to content

Commit 4705f92

Browse files
committed
Fix BT integration tests mark ii (#5608)
1 parent 2964887 commit 4705f92

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

integration/src/test/scala/com/spotify/scio/bigtable/BigtableIT.scala

+1-5
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ object BigtableIT {
4141
def testData(id: String): Seq[(String, Long)] =
4242
Seq((s"$id-key1", 1L), (s"$id-key2", 2L), (s"$id-key3", 3L))
4343

44-
val bigtableOptions: BigtableOptions = BigtableOptions
45-
.builder()
46-
.setProjectId(projectId)
47-
.setInstanceId(instanceId)
48-
.build
44+
val bigtableOptions: BigtableOptions = BTOptions(projectId, instanceId)
4945

5046
val FAMILY_NAME: String = "count"
5147
val COLUMN_QUALIFIER: ByteString = ByteString.copyFromUtf8("long")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.spotify.scio.bigtable
2+
3+
import com.google.cloud.bigtable.config.BigtableOptions
4+
5+
object BTOptions {
6+
def apply(projectId: String, instanceId: String): BigtableOptions =
7+
BigtableOptions.builder().setProjectId(projectId).setInstanceId(instanceId).build
8+
}

0 commit comments

Comments
 (0)