Skip to content

Commit 24d9c06

Browse files
committed
fix bats arg
1 parent 561f19e commit 24d9c06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func runServer(ctx context.Context, args []string, dEnv *env.DoltEnv) (*svcs.Con
211211

212212
// We'll use a temporary environment to instantiate the subdirectory
213213
tempDEnv := env.Load(ctx, env.GetCurrentUserHomeDir, subdirectoryFS, dEnv.UrlStr(), Version)
214-
// username and user email is needed for creating a database.
214+
// username and user email is needed to create a new database.
215215
name := dEnv.Config.GetStringOrDefault(config.UserNameKey, DefUserName)
216216
email := dEnv.Config.GetStringOrDefault(config.UserEmailKey, DefUserEmail)
217217
res := commands.InitCmd{}.Exec(ctx, "init", []string{"--name", name, "--email", email}, tempDEnv, configCliContext{tempDEnv})

testing/bats/doltgres.bats

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ teardown() {
2121
}
2222

2323
@test 'doltgres: with --data-dir' {
24-
start_sql_server_with_args "--host 0.0.0.0 --data-dir=."
24+
start_sql_server_with_args "--host 0.0.0.0" "--data-dir=."
2525
run query_server -c "\l"
2626
[ "$status" -eq 0 ]
2727
[[ "$output" =~ "information_schema" ]] || false
@@ -46,7 +46,7 @@ teardown() {
4646

4747
@test 'doltgres: with both --data-dir and DOLTGRES_DATA_DIR' {
4848
DOLTGRES_DATA_DIR="$BATS_TEST_DIRNAME/test1"
49-
start_sql_server_with_args "--host 0.0.0.0 --data-dir=./test2"
49+
start_sql_server_with_args "--host 0.0.0.0" "--data-dir=./test2"
5050
run query_server -c "\l"
5151
[ "$status" -eq 0 ]
5252
[[ "$output" =~ "information_schema" ]] || false

0 commit comments

Comments
 (0)