mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
mtr: perfschema.socket_{connect,instances_func} "Expect X"
Match test output with what it is testing.
This commit is contained in:
@ -135,21 +135,21 @@ connection default;
|
||||
#
|
||||
# 4.1 Verify that there are two TCP/IP connections in the socket instance table
|
||||
#
|
||||
SELECT COUNT(*) = 2 AS 'Expect 1'
|
||||
SELECT COUNT(*) = 2 AS 'Expect 2'
|
||||
FROM performance_schema.socket_instances
|
||||
WHERE EVENT_NAME LIKE '%client_connection%'
|
||||
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin
|
||||
AND (IP LIKE '%127.0.0.1' OR IP LIKE '%::1');
|
||||
Expect 1
|
||||
Expect 2
|
||||
1
|
||||
#
|
||||
# 4.2 Verify that there are two TCP/IP connections in the summary instance table
|
||||
#
|
||||
SELECT COUNT(*) = 2 AS 'Expect 1'
|
||||
SELECT COUNT(*) = 2 AS 'Expect 2'
|
||||
FROM performance_schema.socket_summary_by_instance
|
||||
WHERE EVENT_NAME LIKE '%client_connection%'
|
||||
AND OBJECT_INSTANCE_BEGIN <> @default_object_instance_begin;
|
||||
Expect 1
|
||||
Expect 2
|
||||
1
|
||||
#==============================================================================
|
||||
# 5.0 Drop the client connections
|
||||
|
Reference in New Issue
Block a user