Skip to content

Commit 488b5c4

Browse files
committed
Fix a failed test.
1 parent bec5b9b commit 488b5c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sdks/python/apache_beam/runners/interactive/interactive_beam_test.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,12 @@ def test_cleanup_by_a_pipeline(self):
395395
# Pipeline association is cleaned up.
396396
self.assertNotIn(p, self.clusters.pipelines)
397397
self.assertNotIn(p, dcm.pipelines)
398-
self.assertEqual(options.view_as(FlinkRunnerOptions).flink_master, '[auto]')
398+
# The internal option in the pipeline is overwritten.
399+
self.assertEqual(
400+
p.options.view_as(FlinkRunnerOptions).flink_master, '[auto]')
401+
# The original option is unchanged.
402+
self.assertEqual(
403+
options.view_as(FlinkRunnerOptions).flink_master, meta.master_url)
399404
# The cluster is unknown now.
400405
self.assertNotIn(meta, self.clusters.dataproc_cluster_managers)
401406
self.assertNotIn(meta.master_url, self.clusters.master_urls)

0 commit comments

Comments
 (0)