File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use rand::{Rng, distr::Alphanumeric};
17
17
18
18
use crate :: Result ;
19
19
20
- pub async fn basic_topic ( builder : pubsub :: builder :: topic_admin :: ClientBuilder ) -> Result < ( ) > {
20
+ pub async fn basic_topic ( ) -> Result < ( ) > {
21
21
// Enable a basic subscriber. Useful to troubleshoot problems and visually
22
22
// verify tracing is doing something.
23
23
#[ cfg( feature = "log-integration-tests" ) ]
@@ -33,8 +33,7 @@ pub async fn basic_topic(builder: pubsub::builder::topic_admin::ClientBuilder) -
33
33
} ;
34
34
35
35
let project = crate :: project_id ( ) ?;
36
- let client = builder. build ( ) . await ?;
37
- let ( topic_admin, topic) = create_test_topic ( ) . await ?;
36
+ let ( client, topic) = create_test_topic ( ) . await ?;
38
37
39
38
tracing:: info!( "testing list_topics()" ) ;
40
39
let topics = client
@@ -45,7 +44,7 @@ pub async fn basic_topic(builder: pubsub::builder::topic_admin::ClientBuilder) -
45
44
tracing:: info!( "success with list_topics={topics:?}" ) ;
46
45
assert ! ( topics. topics. iter( ) . any( |x| x. name == topic. name) ) ;
47
46
48
- cleanup_test_topic ( topic_admin , topic. name ) . await ?;
47
+ cleanup_test_topic ( client , topic. name ) . await ?;
49
48
50
49
Ok ( ( ) )
51
50
}
Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ mod driver {
49
49
50
50
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
51
51
async fn run_pubsub_basic_topic ( ) -> integration_tests:: Result < ( ) > {
52
- integration_tests:: pubsub:: basic_topic (
53
- pubsub:: client:: TopicAdmin :: builder ( ) . with_retry_policy ( retry_policy ( ) ) ,
54
- )
55
- . await
56
- . map_err ( integration_tests:: report_error)
52
+ integration_tests:: pubsub:: basic_topic ( )
53
+ . await
54
+ . map_err ( integration_tests:: report_error)
57
55
}
58
56
59
57
#[ test_case( sm:: client:: SecretManagerService :: builder( ) ; "default" ) ]
You can’t perform that action at this time.
0 commit comments