@@ -139,8 +139,6 @@ mod tests {
139139 use chrono:: Utc ;
140140 use cloudevents:: { EventBuilder , EventBuilderV10 } ;
141141 use serde_json:: json;
142- use std:: str:: FromStr ;
143- use url:: Url ;
144142
145143 #[ tokio:: test]
146144 async fn test_response ( ) {
@@ -162,7 +160,7 @@ mod tests {
162160 //TODO this is required now because the message deserializer implictly set default values
163161 // As soon as this defaulting doesn't happen anymore, we can remove it (Issues #40/#41)
164162 . time ( time)
165- . source ( Url :: from_str ( "http://localhost" ) . unwrap ( ) )
163+ . source ( "http://localhost" )
166164 . extension ( "someint" , "10" )
167165 . build ( )
168166 . unwrap ( ) ;
@@ -204,7 +202,7 @@ mod tests {
204202 //TODO this is required now because the message deserializer implictly set default values
205203 // As soon as this defaulting doesn't happen anymore, we can remove it (Issues #40/#41)
206204 . time ( time)
207- . source ( Url :: from_str ( "http://localhost" ) . unwrap ( ) )
205+ . source ( "http://localhost/" )
208206 . data ( "application/json" , j. to_string ( ) . into_bytes ( ) )
209207 . extension ( "someint" , "10" )
210208 . build ( )
@@ -234,7 +232,7 @@ mod tests {
234232 //TODO this is required now because the message deserializer implictly set default values
235233 // As soon as this defaulting doesn't happen anymore, we can remove it (Issues #40/#41)
236234 . time ( time)
237- . source ( Url :: from_str ( "http://localhost" ) . unwrap ( ) )
235+ . source ( "http://localhost" )
238236 . data ( "application/json" , j. clone ( ) )
239237 . extension ( "someint" , "10" )
240238 . build ( )
0 commit comments