Sha256: 6978a9f75a82f9c34880babd238780094e143fe721273b37acc98547f70e60f7

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true
require 'bundler/setup'
require 'mysql2'
require 'minitest/autorun'

if !defined?(Minitest::Test)
  Minitest::Test = MiniTest::Unit::TestCase
end

require_relative 'boot_mysql_env'

def assert_ro(cx, str, bool)
  expected = bool ? 1 : 0
  assert_equal expected, cx.query("select @@read_only as ro").first['ro'], "#{str} is #{bool ? 'read-write' : 'read-only'} but I expected otherwise!"
end

def master_cut_script
  File.expand_path(File.dirname(__FILE__)) + "/../bin/master_cut"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar_mysql_flexmaster-1.0.3 test/integration_helper.rb