File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- import Driver from '../driver' ;
21import { initDriver , destroyDriver } from '../test-utils' ;
32
43describe ( 'Connection' , ( ) => {
5- let driver : Driver ;
6-
7- beforeAll ( async ( ) => {
8- driver = await initDriver ( ) ;
4+ it ( 'Test GRPC connection' , async ( ) => {
5+ let driver = await initDriver ( { endpoint : 'grpc://localhost:2136' } ) ;
6+ await driver . tableClient . withSession ( async ( session ) => {
7+ await session . executeQuery ( 'SELECT 1' ) ;
8+ } ) ;
9+ await destroyDriver ( driver )
910 } ) ;
1011
11- afterAll ( ( ) => destroyDriver ( driver ) ) ;
12-
13- it ( 'Test connection' , async ( ) => {
12+ it ( 'Test GRPCS connection' , async ( ) => {
13+ let driver = await initDriver ( ) ;
1414 await driver . tableClient . withSession ( async ( session ) => {
1515 await session . executeQuery ( 'SELECT 1' ) ;
1616 } ) ;
17+ await destroyDriver ( driver )
1718 } ) ;
1819} ) ;
You can’t perform that action at this time.
0 commit comments