Skip to content

Commit 70bc8d5

Browse files
remove X on test
1 parent ecfedae commit 70bc8d5

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

tests/ci/x.test.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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-
6437
test(`MySQL X is on when force enabling it`, async () => {
6538
const options: ServerOptions = {
6639
arch,

types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ExecFileException } from "child_process"
22

33
export type LOG_LEVEL = 'LOG' | 'WARN' | 'ERROR'
44

5-
export type PluginActivationState = 'OFF' | 'ON' | 'FORCE'
5+
export type PluginActivationState = 'OFF' | 'FORCE'
66

77
export type ServerOptions = {
88
version?: string | undefined,

0 commit comments

Comments
 (0)