File tree Expand file tree Collapse file tree 2 files changed +1
-28
lines changed
Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -34,33 +34,6 @@ test(`MySQL X is off when disabling it`, async () => {
3434 expect ( db . xSocket ) . toBe ( '' )
3535} )
3636
37- test ( `MySQL X is on when enabling it` , async ( ) => {
38- const options : ServerOptions = {
39- arch,
40- xEnabled : 'ON' ,
41- logLevel : 'LOG'
42- }
43-
44- const db = await createDB ( options )
45- const connection = await sql . createConnection ( {
46- host : '127.0.0.1' ,
47- user : db . username ,
48- port : db . port
49- } )
50-
51- const plugins = JSON . stringify ( ( await connection . query ( 'SHOW PLUGINS;' ) ) [ 0 ] )
52- console . log ( plugins )
53- const mysqlXEnabled = plugins . includes ( '"Name":"mysqlx","Status":"ACTIVE"' )
54-
55- await connection . end ( ) ;
56- await db . stop ( ) ;
57-
58- expect ( mysqlXEnabled ) . toBe ( true )
59- expect ( db . xPort ) . toBeGreaterThan ( 0 )
60- expect ( db . xPort ) . toBeLessThanOrEqual ( 65535 )
61- expect ( typeof db . xSocket ) . toBe ( 'string' )
62- } )
63-
6437test ( `MySQL X is on when force enabling it` , async ( ) => {
6538 const options : ServerOptions = {
6639 arch,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { ExecFileException } from "child_process"
22
33export type LOG_LEVEL = 'LOG' | 'WARN' | 'ERROR'
44
5- export type PluginActivationState = 'OFF' | 'ON' | ' FORCE'
5+ export type PluginActivationState = 'OFF' | 'FORCE'
66
77export type ServerOptions = {
88 version ?: string | undefined ,
You can’t perform that action at this time.
0 commit comments