@@ -97,7 +97,7 @@ impl TestResult {
9797struct TestCase {
9898 name : String ,
9999 test : TestFn ,
100- source_subgraph : Option < String > ,
100+ source_subgraph : Option < Vec < String > > ,
101101}
102102
103103impl TestCase {
@@ -117,7 +117,7 @@ impl TestCase {
117117 T : Future < Output = Result < ( ) , anyhow:: Error > > + Send + ' static ,
118118 {
119119 let mut test_case = Self :: new ( name, test) ;
120- test_case. source_subgraph = Some ( base_subgraph. to_string ( ) ) ;
120+ test_case. source_subgraph = Some ( vec ! [ base_subgraph. to_string( ) ] ) ;
121121 test_case
122122 }
123123
@@ -130,7 +130,7 @@ impl TestCase {
130130 T : Future < Output = Result < ( ) , anyhow:: Error > > + Send + ' static ,
131131 {
132132 let mut test_case = Self :: new ( name, test) ;
133- test_case. source_subgraph = Some ( source_subgraph. to_string ( ) ) ;
133+ test_case. source_subgraph = Some ( vec ! [ source_subgraph. to_string( ) ] ) ;
134134 test_case
135135 }
136136
@@ -143,7 +143,12 @@ impl TestCase {
143143 T : Future < Output = Result < ( ) , anyhow:: Error > > + Send + ' static ,
144144 {
145145 let mut test_case = Self :: new ( name, test) ;
146- test_case. source_subgraph = Some ( source_subgraphs. join ( "," ) ) ;
146+ test_case. source_subgraph = Some (
147+ source_subgraphs
148+ . into_iter ( )
149+ . map ( |s| s. to_string ( ) )
150+ . collect ( ) ,
151+ ) ;
147152 test_case
148153 }
149154
@@ -253,7 +258,7 @@ impl TestCase {
253258
254259 async fn deploy_multiple_sources ( & self , contracts : & [ Contract ] ) -> Result < ( ) > {
255260 if let Some ( sources) = & self . source_subgraph {
256- for source in sources. split ( "," ) {
261+ for source in sources {
257262 let subgraph = self . deploy_and_wait ( source, contracts) . await ?;
258263 status ! (
259264 source,
0 commit comments