File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,8 +374,8 @@ mod tests {
374374 fn test_validate_schema_custom ( ) {
375375 assert_eq ! (
376376 validate_schema(
377- Some ( & DataTrackFrameEncoding :: Custom ( "my-frame" . to_string( ) ) ) ,
378- Some ( & DataTrackSchemaEncoding :: Custom ( "my-encoding" . to_string( ) ) )
377+ Some ( & DataTrackFrameEncoding :: Custom ( "my-frame-encoding " . to_string( ) ) ) ,
378+ Some ( & DataTrackSchemaEncoding :: Custom ( "my-schema- encoding" . to_string( ) ) )
379379 ) ,
380380 Ok ( ( ) )
381381 ) ;
@@ -389,6 +389,14 @@ mod tests {
389389 ) ;
390390 }
391391
392+ #[ test]
393+ fn test_validate_schema_missing_schema_id ( ) {
394+ assert_eq ! (
395+ validate_schema( Some ( & DataTrackFrameEncoding :: Protobuf ) , None ) ,
396+ Err ( DataTrackSchemaError :: MissingSchemaId )
397+ ) ;
398+ }
399+
392400 #[ test]
393401 fn test_validate_schema_incompatible ( ) {
394402 assert_eq ! (
You can’t perform that action at this time.
0 commit comments