File: skip-random-failing-tests.patch

package info (click to toggle)
ruby-mysql2 0.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 744 kB
  • sloc: ansic: 2,997; ruby: 2,751; sh: 60; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 1,161 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: skip connect_attrs tests due random failure
Author: Lucas Kanashiro <kanashiro@debian.org>
Last-Update: 2019-01-04

--- a/spec/mysql2/client_spec.rb
+++ b/spec/mysql2/client_spec.rb
@@ -471,7 +471,7 @@ RSpec.describe Mysql2::Client do
     expect(client.read_timeout).to be_nil
   end
 
-  it "should set default program_name in connect_attrs" do
+  xit "should set default program_name in connect_attrs" do
     client = new_client
     if Mysql2::Client::CONNECT_ATTRS.zero? || client.server_info[:version].match(/10.[01].\d+-MariaDB/)
       pending('Both client and server versions must be MySQL 5.6 or MariaDB 10.2 or later.')
@@ -480,7 +480,7 @@ RSpec.describe Mysql2::Client do
     expect(result.first['attr_value']).to eq($PROGRAM_NAME)
   end
 
-  it "should set custom connect_attrs" do
+  xit "should set custom connect_attrs" do
     client = new_client(connect_attrs: { program_name: 'my_program_name', foo: 'fooval', bar: 'barval' })
     if Mysql2::Client::CONNECT_ATTRS.zero? || client.server_info[:version].match(/10.[01].\d+-MariaDB/)
       pending('Both client and server versions must be MySQL 5.6 or MariaDB 10.2 or later.')