@@ -48,12 +48,13 @@ async fn test_check_basic_valid() -> anyhow::Result<()> {
4848 . await ;
4949 let ( projects, project_hash) =
5050 brioche_test_support:: load_project ( & brioche, & project_dir) . await ?;
51+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
5152
5253 let result = brioche_core:: script:: check:: check (
5354 & brioche,
5455 brioche_core:: script:: initialize_js_platform ( ) ,
5556 & projects,
56- & HashSet :: from_iter ( [ project_hash ] ) ,
57+ & project_hashes ,
5758 )
5859 . await ?;
5960
@@ -87,12 +88,13 @@ async fn test_check_basic_invalid() -> anyhow::Result<()> {
8788 . await ;
8889 let ( projects, project_hash) =
8990 brioche_test_support:: load_project ( & brioche, & project_dir) . await ?;
91+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
9092
9193 let result = brioche_core:: script:: check:: check (
9294 & brioche,
9395 brioche_core:: script:: initialize_js_platform ( ) ,
9496 & projects,
95- & HashSet :: from_iter ( [ project_hash ] ) ,
97+ & project_hashes ,
9698 )
9799 . await ?;
98100
@@ -151,12 +153,13 @@ async fn test_check_import_valid() -> anyhow::Result<()> {
151153
152154 let ( projects, project_hash) =
153155 brioche_test_support:: load_project ( & brioche, & project_dir) . await ?;
156+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
154157
155158 let result = brioche_core:: script:: check:: check (
156159 & brioche,
157160 brioche_core:: script:: initialize_js_platform ( ) ,
158161 & projects,
159- & HashSet :: from_iter ( [ project_hash ] ) ,
162+ & project_hashes ,
160163 )
161164 . await ?;
162165
@@ -191,12 +194,13 @@ async fn test_check_import_nonexistent() -> anyhow::Result<()> {
191194
192195 let ( projects, project_hash) =
193196 brioche_test_support:: load_project_no_validate ( & brioche, & project_dir) . await ?;
197+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
194198
195199 let result = brioche_core:: script:: check:: check (
196200 & brioche,
197201 brioche_core:: script:: initialize_js_platform ( ) ,
198202 & projects,
199- & HashSet :: from_iter ( [ project_hash ] ) ,
203+ & project_hashes ,
200204 )
201205 . await ?;
202206
@@ -230,12 +234,13 @@ async fn test_check_invalid_unused_var() -> anyhow::Result<()> {
230234 . await ;
231235 let ( projects, project_hash) =
232236 brioche_test_support:: load_project ( & brioche, & project_dir) . await ?;
237+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
233238
234239 let result = brioche_core:: script:: check:: check (
235240 & brioche,
236241 brioche_core:: script:: initialize_js_platform ( ) ,
237242 & projects,
238- & HashSet :: from_iter ( [ project_hash ] ) ,
243+ & project_hashes ,
239244 )
240245 . await ?;
241246
@@ -276,12 +281,13 @@ async fn test_check_invalid_missing_await() -> anyhow::Result<()> {
276281 . await ;
277282 let ( projects, project_hash) =
278283 brioche_test_support:: load_project ( & brioche, & project_dir) . await ?;
284+ let project_hashes = HashSet :: from_iter ( [ project_hash] ) ;
279285
280286 let result = brioche_core:: script:: check:: check (
281287 & brioche,
282288 brioche_core:: script:: initialize_js_platform ( ) ,
283289 & projects,
284- & HashSet :: from_iter ( [ project_hash ] ) ,
290+ & project_hashes ,
285291 )
286292 . await ?;
287293
0 commit comments