@@ -13,7 +13,7 @@ fn core_native_version() {
1313 assert ! ( !Core :: native_version( ) . is_empty( ) )
1414}
1515
16- #[ tokio:: test( threaded_scheduler ) ]
16+ #[ tokio:: test( flavor = "multi_thread" ) ]
1717async fn tanker_create ( ) -> Result < ( ) , Error > {
1818 let app = TestApp :: get ( ) . await ;
1919 let opts = Options :: new ( app. id ( ) . to_owned ( ) , ":memory:" . to_string ( ) )
@@ -23,7 +23,7 @@ async fn tanker_create() -> Result<(), Error> {
2323 Ok ( ( ) )
2424}
2525
26- #[ tokio:: test( threaded_scheduler ) ]
26+ #[ tokio:: test( flavor = "multi_thread" ) ]
2727async fn tanker_bad_create ( ) {
2828 let opts = Options :: new ( "bad-app-id" . to_string ( ) , ":memory:" . to_string ( ) )
2929 . with_sdk_type ( "sdk-rust-test" . to_string ( ) ) ;
@@ -33,7 +33,7 @@ async fn tanker_bad_create() {
3333 assert_eq ! ( err. code( ) , ErrorCode :: InvalidArgument ) ;
3434}
3535
36- #[ tokio:: test( threaded_scheduler ) ]
36+ #[ tokio:: test( flavor = "multi_thread" ) ]
3737async fn start_stop_session ( ) -> Result < ( ) , Error > {
3838 let app = TestApp :: get ( ) . await ;
3939 let tanker = Core :: new ( app. make_options ( ) ) . await ?;
@@ -49,7 +49,7 @@ async fn start_stop_session() -> Result<(), Error> {
4949 Ok ( ( ) )
5050}
5151
52- #[ tokio:: test( threaded_scheduler ) ]
52+ #[ tokio:: test( flavor = "multi_thread" ) ]
5353async fn self_revoke ( ) -> Result < ( ) , Error > {
5454 let app = TestApp :: get ( ) . await ;
5555 let tanker = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -62,7 +62,7 @@ async fn self_revoke() -> Result<(), Error> {
6262 tanker. stop ( ) . await
6363}
6464
65- #[ tokio:: test( threaded_scheduler ) ]
65+ #[ tokio:: test( flavor = "multi_thread" ) ]
6666async fn has_correct_device_list ( ) -> Result < ( ) , Error > {
6767 let app = TestApp :: get ( ) . await ;
6868 let tanker = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -75,7 +75,7 @@ async fn has_correct_device_list() -> Result<(), Error> {
7575 tanker. stop ( ) . await
7676}
7777
78- #[ tokio:: test( threaded_scheduler ) ]
78+ #[ tokio:: test( flavor = "multi_thread" ) ]
7979async fn encrypt_and_decrypt ( ) -> Result < ( ) , Error > {
8080 let app = TestApp :: get ( ) . await ;
8181 let tanker = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -89,7 +89,7 @@ async fn encrypt_and_decrypt() -> Result<(), Error> {
8989 Ok ( ( ) )
9090}
9191
92- #[ tokio:: test( threaded_scheduler ) ]
92+ #[ tokio:: test( flavor = "multi_thread" ) ]
9393async fn share_then_decrypt ( ) -> Result < ( ) , Error > {
9494 let app = TestApp :: get ( ) . await ;
9595 let alice = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -112,7 +112,7 @@ async fn share_then_decrypt() -> Result<(), Error> {
112112 Ok ( ( ) )
113113}
114114
115- #[ tokio:: test( threaded_scheduler ) ]
115+ #[ tokio:: test( flavor = "multi_thread" ) ]
116116async fn encrypt_and_share_then_decrypt ( ) -> Result < ( ) , Error > {
117117 let app = TestApp :: get ( ) . await ;
118118 let alice = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -131,7 +131,7 @@ async fn encrypt_and_share_then_decrypt() -> Result<(), Error> {
131131 Ok ( ( ) )
132132}
133133
134- #[ tokio:: test( threaded_scheduler ) ]
134+ #[ tokio:: test( flavor = "multi_thread" ) ]
135135async fn encrypt_no_share_with_self ( ) -> Result < ( ) , Error > {
136136 let app = TestApp :: get ( ) . await ;
137137 let alice = app. start_anonymous ( & app. create_identity ( None ) ) . await ?;
@@ -155,7 +155,7 @@ async fn encrypt_no_share_with_self() -> Result<(), Error> {
155155 Ok ( ( ) )
156156}
157157
158- #[ tokio:: test( threaded_scheduler ) ]
158+ #[ tokio:: test( flavor = "multi_thread" ) ]
159159async fn share_with_provisional_user ( ) -> Result < ( ) , Error > {
160160 let message = b"Variable 'message' is never used" ;
161161 let app = TestApp :: get ( ) . await ;
@@ -190,7 +190,7 @@ async fn share_with_provisional_user() -> Result<(), Error> {
190190 Ok ( ( ) )
191191}
192192
193- #[ tokio:: test( threaded_scheduler ) ]
193+ #[ tokio:: test( flavor = "multi_thread" ) ]
194194async fn attach_provisional_with_single_verif ( ) -> Result < ( ) , Error > {
195195 let message = b"Variable 'message' is never used" ;
196196 let app = TestApp :: get ( ) . await ;
@@ -223,14 +223,14 @@ async fn attach_provisional_with_single_verif() -> Result<(), Error> {
223223 Ok ( ( ) )
224224}
225225
226- #[ tokio:: test( threaded_scheduler ) ]
226+ #[ tokio:: test( flavor = "multi_thread" ) ]
227227async fn prehash_password_empty ( ) -> Result < ( ) , Error > {
228228 let err = Core :: prehash_password ( "" ) . unwrap_err ( ) ;
229229 assert_eq ! ( err. code( ) , ErrorCode :: InvalidArgument ) ;
230230 Ok ( ( ) )
231231}
232232
233- #[ tokio:: test( threaded_scheduler ) ]
233+ #[ tokio:: test( flavor = "multi_thread" ) ]
234234async fn prehash_password_test_vector_1 ( ) -> Result < ( ) , Error > {
235235 let input = "super secretive password" ;
236236 let expected = "UYNRgDLSClFWKsJ7dl9uPJjhpIoEzadksv/Mf44gSHI=" ;
@@ -239,7 +239,7 @@ async fn prehash_password_test_vector_1() -> Result<(), Error> {
239239 Ok ( ( ) )
240240}
241241
242- #[ tokio:: test( threaded_scheduler ) ]
242+ #[ tokio:: test( flavor = "multi_thread" ) ]
243243async fn prehash_password_test_vector_2 ( ) -> Result < ( ) , Error > {
244244 let input = "test éå 한국어 😃" ;
245245 let expected = "Pkn/pjub2uwkBDpt2HUieWOXP5xLn0Zlen16ID4C7jI=" ;
0 commit comments