@@ -12,7 +12,7 @@ fn matching_pairs() -> impl Iterator<Item = &'static (char, char)> {
12
12
DEFAULT_PAIRS . iter ( ) . filter ( |( open, close) | open == close)
13
13
}
14
14
15
- #[ tokio:: test]
15
+ #[ tokio:: test( flavor = "multi_thread" ) ]
16
16
async fn insert_basic ( ) -> anyhow:: Result < ( ) > {
17
17
for pair in DEFAULT_PAIRS {
18
18
test ( (
@@ -26,7 +26,7 @@ async fn insert_basic() -> anyhow::Result<()> {
26
26
Ok ( ( ) )
27
27
}
28
28
29
- #[ tokio:: test]
29
+ #[ tokio:: test( flavor = "multi_thread" ) ]
30
30
async fn insert_configured_multi_byte_chars ( ) -> anyhow:: Result < ( ) > {
31
31
// NOTE: these are multi-byte Unicode characters
32
32
let pairs = hashmap ! ( '„' => '“' , '‚' => '‘' , '「' => '」' ) ;
@@ -68,7 +68,7 @@ async fn insert_configured_multi_byte_chars() -> anyhow::Result<()> {
68
68
Ok ( ( ) )
69
69
}
70
70
71
- #[ tokio:: test]
71
+ #[ tokio:: test( flavor = "multi_thread" ) ]
72
72
async fn insert_after_word ( ) -> anyhow:: Result < ( ) > {
73
73
for pair in differing_pairs ( ) {
74
74
test ( (
@@ -91,7 +91,7 @@ async fn insert_after_word() -> anyhow::Result<()> {
91
91
Ok ( ( ) )
92
92
}
93
93
94
- #[ tokio:: test]
94
+ #[ tokio:: test( flavor = "multi_thread" ) ]
95
95
async fn insert_before_word ( ) -> anyhow:: Result < ( ) > {
96
96
for pair in DEFAULT_PAIRS {
97
97
test ( (
@@ -105,7 +105,7 @@ async fn insert_before_word() -> anyhow::Result<()> {
105
105
Ok ( ( ) )
106
106
}
107
107
108
- #[ tokio:: test]
108
+ #[ tokio:: test( flavor = "multi_thread" ) ]
109
109
async fn insert_before_word_selection ( ) -> anyhow:: Result < ( ) > {
110
110
for pair in DEFAULT_PAIRS {
111
111
test ( (
@@ -119,7 +119,7 @@ async fn insert_before_word_selection() -> anyhow::Result<()> {
119
119
Ok ( ( ) )
120
120
}
121
121
122
- #[ tokio:: test]
122
+ #[ tokio:: test( flavor = "multi_thread" ) ]
123
123
async fn insert_before_word_selection_trailing_word ( ) -> anyhow:: Result < ( ) > {
124
124
for pair in differing_pairs ( ) {
125
125
test ( (
@@ -133,7 +133,7 @@ async fn insert_before_word_selection_trailing_word() -> anyhow::Result<()> {
133
133
Ok ( ( ) )
134
134
}
135
135
136
- #[ tokio:: test]
136
+ #[ tokio:: test( flavor = "multi_thread" ) ]
137
137
async fn insert_closer_selection_trailing_word ( ) -> anyhow:: Result < ( ) > {
138
138
for pair in differing_pairs ( ) {
139
139
test ( (
@@ -147,7 +147,7 @@ async fn insert_closer_selection_trailing_word() -> anyhow::Result<()> {
147
147
Ok ( ( ) )
148
148
}
149
149
150
- #[ tokio:: test]
150
+ #[ tokio:: test( flavor = "multi_thread" ) ]
151
151
async fn insert_before_eol ( ) -> anyhow:: Result < ( ) > {
152
152
for pair in DEFAULT_PAIRS {
153
153
test ( (
@@ -166,7 +166,7 @@ async fn insert_before_eol() -> anyhow::Result<()> {
166
166
Ok ( ( ) )
167
167
}
168
168
169
- #[ tokio:: test]
169
+ #[ tokio:: test( flavor = "multi_thread" ) ]
170
170
async fn insert_auto_pairs_disabled ( ) -> anyhow:: Result < ( ) > {
171
171
for pair in DEFAULT_PAIRS {
172
172
test_with_config (
@@ -191,7 +191,7 @@ async fn insert_auto_pairs_disabled() -> anyhow::Result<()> {
191
191
Ok ( ( ) )
192
192
}
193
193
194
- #[ tokio:: test]
194
+ #[ tokio:: test( flavor = "multi_thread" ) ]
195
195
async fn insert_multi_range ( ) -> anyhow:: Result < ( ) > {
196
196
for pair in DEFAULT_PAIRS {
197
197
test ( (
@@ -210,7 +210,7 @@ async fn insert_multi_range() -> anyhow::Result<()> {
210
210
Ok ( ( ) )
211
211
}
212
212
213
- #[ tokio:: test]
213
+ #[ tokio:: test( flavor = "multi_thread" ) ]
214
214
async fn insert_before_multi_code_point_graphemes ( ) -> anyhow:: Result < ( ) > {
215
215
for pair in differing_pairs ( ) {
216
216
test ( (
@@ -223,7 +223,7 @@ async fn insert_before_multi_code_point_graphemes() -> anyhow::Result<()> {
223
223
Ok ( ( ) )
224
224
}
225
225
226
- #[ tokio:: test]
226
+ #[ tokio:: test( flavor = "multi_thread" ) ]
227
227
async fn insert_at_end_of_document ( ) -> anyhow:: Result < ( ) > {
228
228
for pair in DEFAULT_PAIRS {
229
229
test ( TestCase {
@@ -248,7 +248,7 @@ async fn insert_at_end_of_document() -> anyhow::Result<()> {
248
248
Ok ( ( ) )
249
249
}
250
250
251
- #[ tokio:: test]
251
+ #[ tokio:: test( flavor = "multi_thread" ) ]
252
252
async fn insert_close_inside_pair ( ) -> anyhow:: Result < ( ) > {
253
253
for pair in DEFAULT_PAIRS {
254
254
test ( (
@@ -272,7 +272,7 @@ async fn insert_close_inside_pair() -> anyhow::Result<()> {
272
272
Ok ( ( ) )
273
273
}
274
274
275
- #[ tokio:: test]
275
+ #[ tokio:: test( flavor = "multi_thread" ) ]
276
276
async fn insert_close_inside_pair_multi ( ) -> anyhow:: Result < ( ) > {
277
277
for pair in DEFAULT_PAIRS {
278
278
test ( (
@@ -296,7 +296,7 @@ async fn insert_close_inside_pair_multi() -> anyhow::Result<()> {
296
296
Ok ( ( ) )
297
297
}
298
298
299
- #[ tokio:: test]
299
+ #[ tokio:: test( flavor = "multi_thread" ) ]
300
300
async fn insert_nested_open_inside_pair ( ) -> anyhow:: Result < ( ) > {
301
301
for pair in differing_pairs ( ) {
302
302
test ( (
@@ -320,7 +320,7 @@ async fn insert_nested_open_inside_pair() -> anyhow::Result<()> {
320
320
Ok ( ( ) )
321
321
}
322
322
323
- #[ tokio:: test]
323
+ #[ tokio:: test( flavor = "multi_thread" ) ]
324
324
async fn insert_nested_open_inside_pair_multi ( ) -> anyhow:: Result < ( ) > {
325
325
for outer_pair in DEFAULT_PAIRS {
326
326
for inner_pair in DEFAULT_PAIRS {
@@ -352,7 +352,7 @@ async fn insert_nested_open_inside_pair_multi() -> anyhow::Result<()> {
352
352
Ok ( ( ) )
353
353
}
354
354
355
- #[ tokio:: test]
355
+ #[ tokio:: test( flavor = "multi_thread" ) ]
356
356
async fn append_basic ( ) -> anyhow:: Result < ( ) > {
357
357
for pair in DEFAULT_PAIRS {
358
358
test ( (
@@ -371,7 +371,7 @@ async fn append_basic() -> anyhow::Result<()> {
371
371
Ok ( ( ) )
372
372
}
373
373
374
- #[ tokio:: test]
374
+ #[ tokio:: test( flavor = "multi_thread" ) ]
375
375
async fn append_multi_range ( ) -> anyhow:: Result < ( ) > {
376
376
for pair in DEFAULT_PAIRS {
377
377
test ( (
@@ -390,7 +390,7 @@ async fn append_multi_range() -> anyhow::Result<()> {
390
390
Ok ( ( ) )
391
391
}
392
392
393
- #[ tokio:: test]
393
+ #[ tokio:: test( flavor = "multi_thread" ) ]
394
394
async fn append_close_inside_pair ( ) -> anyhow:: Result < ( ) > {
395
395
for pair in DEFAULT_PAIRS {
396
396
test ( (
@@ -414,7 +414,7 @@ async fn append_close_inside_pair() -> anyhow::Result<()> {
414
414
Ok ( ( ) )
415
415
}
416
416
417
- #[ tokio:: test]
417
+ #[ tokio:: test( flavor = "multi_thread" ) ]
418
418
async fn append_close_inside_pair_multi ( ) -> anyhow:: Result < ( ) > {
419
419
for pair in DEFAULT_PAIRS {
420
420
test ( (
@@ -438,7 +438,7 @@ async fn append_close_inside_pair_multi() -> anyhow::Result<()> {
438
438
Ok ( ( ) )
439
439
}
440
440
441
- #[ tokio:: test]
441
+ #[ tokio:: test( flavor = "multi_thread" ) ]
442
442
async fn append_end_of_word ( ) -> anyhow:: Result < ( ) > {
443
443
for pair in differing_pairs ( ) {
444
444
test ( (
@@ -457,7 +457,7 @@ async fn append_end_of_word() -> anyhow::Result<()> {
457
457
Ok ( ( ) )
458
458
}
459
459
460
- #[ tokio:: test]
460
+ #[ tokio:: test( flavor = "multi_thread" ) ]
461
461
async fn append_middle_of_word ( ) -> anyhow:: Result < ( ) > {
462
462
for pair in differing_pairs ( ) {
463
463
test ( (
@@ -471,7 +471,7 @@ async fn append_middle_of_word() -> anyhow::Result<()> {
471
471
Ok ( ( ) )
472
472
}
473
473
474
- #[ tokio:: test]
474
+ #[ tokio:: test( flavor = "multi_thread" ) ]
475
475
async fn append_end_of_word_multi ( ) -> anyhow:: Result < ( ) > {
476
476
for pair in differing_pairs ( ) {
477
477
test ( (
@@ -490,7 +490,7 @@ async fn append_end_of_word_multi() -> anyhow::Result<()> {
490
490
Ok ( ( ) )
491
491
}
492
492
493
- #[ tokio:: test]
493
+ #[ tokio:: test( flavor = "multi_thread" ) ]
494
494
async fn append_inside_nested_pair ( ) -> anyhow:: Result < ( ) > {
495
495
for pair in differing_pairs ( ) {
496
496
test ( (
@@ -514,7 +514,7 @@ async fn append_inside_nested_pair() -> anyhow::Result<()> {
514
514
Ok ( ( ) )
515
515
}
516
516
517
- #[ tokio:: test]
517
+ #[ tokio:: test( flavor = "multi_thread" ) ]
518
518
async fn append_inside_nested_pair_multi ( ) -> anyhow:: Result < ( ) > {
519
519
for outer_pair in DEFAULT_PAIRS {
520
520
for inner_pair in DEFAULT_PAIRS {
0 commit comments