File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 43
43
ref : ${{ github.event.pull_request.head.ref }}
44
44
repository : ${{github.event.pull_request.head.repo.full_name}}
45
45
- name : cargo-deny
46
- uses : EmbarkStudios/cargo-deny-action@v1
46
+ uses : EmbarkStudios/cargo-deny-action@v2
47
47
with :
48
+ rust-version : " 1.88.0"
48
49
arguments : --workspace --all-features
49
50
foundation :
50
51
name : foundation
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ impl ToKind for ::prost_types::Timestamp {
211
211
fn to_kind ( & self ) -> Kind {
212
212
// The protobuf timestamp type should be formatted in RFC3339
213
213
// See here for more details: https://docs.rs/prost-types/latest/prost_types/struct.Timestamp.html
214
- let rfc3339 = format ! ( "{}" , self ) ;
214
+ let rfc3339 = format ! ( "{self}" ) ;
215
215
rfc3339. to_kind ( )
216
216
}
217
217
Original file line number Diff line number Diff line change @@ -166,13 +166,13 @@ async fn test_read_change_stream() {
166
166
// Create Change Stream
167
167
let cred = google_cloud_auth:: credentials:: CredentialsFile :: new ( ) . await . unwrap ( ) ;
168
168
let project = cred. project_id . unwrap ( ) ;
169
- let db = format ! ( "projects/{}/instances/test-instance/databases/local-database" , project ) ;
169
+ let db = format ! ( "projects/{project }/instances/test-instance/databases/local-database2" ) ;
170
170
let admin_client = admin:: client:: Client :: new ( AdminClientConfig {
171
171
environment : create_environment ( ) . await ,
172
172
} )
173
173
. await
174
174
. unwrap ( ) ;
175
- let _ = admin_client
175
+ let result = admin_client
176
176
. database ( )
177
177
. update_database_ddl (
178
178
UpdateDatabaseDdlRequest {
@@ -185,8 +185,16 @@ async fn test_read_change_stream() {
185
185
None ,
186
186
)
187
187
. await ;
188
-
189
- sleep ( Duration :: from_secs ( 20 ) ) . await ;
188
+ match result {
189
+ Ok ( mut res) => {
190
+ let op = res. wait ( None ) . await ;
191
+ match op {
192
+ Ok ( _) => tracing:: info!( "create change stream success" ) ,
193
+ Err ( e) => panic ! ( "create change stream failed: {e:?}" ) ,
194
+ }
195
+ }
196
+ Err ( e) => panic ! ( "create change stream failed: {e:?}" ) ,
197
+ }
190
198
191
199
let now = OffsetDateTime :: now_utc ( ) ;
192
200
You can’t perform that action at this time.
0 commit comments