mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-26 11:39:05 -05:00
Fixing tests
This commit is contained in:
@@ -243,7 +243,7 @@ func TestBinlogSystemUserIsLocked(t *testing.T) {
|
||||
// Before starting replication, the system account does not exist
|
||||
err = db.Ping()
|
||||
require.Error(t, err)
|
||||
require.ErrorContains(t, err, "User not found")
|
||||
require.ErrorContains(t, err, "No authentication")
|
||||
|
||||
// After starting replication, the system account is locked
|
||||
startReplicationAndCreateTestDb(t, mySqlPort)
|
||||
|
||||
@@ -89,7 +89,7 @@ teardown() {
|
||||
@test "cli-hosted: bogus user rejected" {
|
||||
run dolt $TLS --host $HST --port $PRT --user bogus sql -q "create database bats_test_cli_hosted"
|
||||
[ "$status" -eq 1 ]
|
||||
[[ $output =~ "User not found 'bogus'" ]] || false
|
||||
[[ $output =~ "No authentication" ]] || false
|
||||
}
|
||||
|
||||
# This test will not work if you change DOLT_CLI_USER above. Be aware if you run against a hosted instance.
|
||||
|
||||
Reference in New Issue
Block a user