Fixing tests

This commit is contained in:
Jason Fulghum
2024-11-21 14:21:18 -08:00
parent 68e108475c
commit fd16d5a1cb
2 changed files with 2 additions and 2 deletions
@@ -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)
+1 -1
View File
@@ -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.