File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,10 @@ struct SparkSessionTests {
161161 await SparkSession . builder. clear ( )
162162 let spark = try await SparkSession . builder. getOrCreate ( )
163163 #expect( fm. createFile ( atPath: path, contents: " abc " . data ( using: . utf8) ) )
164- try await spark. addArtifact ( path)
165- try await spark. addArtifact ( url)
164+ if await spark. version. starts ( with: " 4. " ) {
165+ try await spark. addArtifact ( path)
166+ try await spark. addArtifact ( url)
167+ }
166168 try fm. removeItem ( atPath: path)
167169 await spark. stop ( )
168170 }
@@ -176,7 +178,9 @@ struct SparkSessionTests {
176178 await SparkSession . builder. clear ( )
177179 let spark = try await SparkSession . builder. getOrCreate ( )
178180 #expect( fm. createFile ( atPath: path, contents: " abc " . data ( using: . utf8) ) )
179- try await spark. addArtifacts ( url, url)
181+ if await spark. version. starts ( with: " 4. " ) {
182+ try await spark. addArtifacts ( url, url)
183+ }
180184 try fm. removeItem ( atPath: path)
181185 await spark. stop ( )
182186 }
You can’t perform that action at this time.
0 commit comments