File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import GRPCProtobuf
23
23
import Synchronization
24
24
25
25
/// Conceptually the remote spark session that communicates with the server
26
- public actor Client {
26
+ public actor SparkConnectClient {
27
27
let clientType : String = " swift "
28
28
let url : URL
29
29
let host : String
Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ import Testing
24
24
25
25
/// A test suite for `Client`
26
26
@Suite ( . serialized)
27
- struct ClientTests {
27
+ struct SparkConnectClientTests {
28
28
@Test
29
29
func createAndStop( ) async throws {
30
- let client = Client ( remote: " sc://localhost " , user: " test " )
30
+ let client = SparkConnectClient ( remote: " sc://localhost " , user: " test " )
31
31
await client. stop ( )
32
32
}
33
33
34
34
@Test
35
35
func connectWithInvalidUUID( ) async throws {
36
- let client = Client ( remote: " sc://localhost " , user: " test " )
36
+ let client = SparkConnectClient ( remote: " sc://localhost " , user: " test " )
37
37
try await #require( throws: SparkConnectError . InvalidSessionIDException) {
38
38
let _ = try await client. connect ( " not-a-uuid-format " )
39
39
}
@@ -42,7 +42,7 @@ struct ClientTests {
42
42
43
43
@Test
44
44
func connect( ) async throws {
45
- let client = Client ( remote: " sc://localhost " , user: " test " )
45
+ let client = SparkConnectClient ( remote: " sc://localhost " , user: " test " )
46
46
let _ = try await client. connect ( UUID ( ) . uuidString)
47
47
await client. stop ( )
48
48
}
You can’t perform that action at this time.
0 commit comments