/go/performance/utils/benchmark_runner: fix doltgres version command

This commit is contained in:
coffeegoddd
2024-05-29 10:48:21 -07:00
parent 6a4e82f9a0
commit 91d00f2e1e
2 changed files with 2 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ const (
doltDataDir = ".dolt"
createDatabaseTemplate = "create database %s;"
psqlDsnTemplate = "host=%s port=%d user=%s password=%s dbname=%s sslmode=disable"
doltgresVersionCommand = "-version"
expectedServerKilledErrorMessage = "signal: killed"
expectedServerTerminatedErrorMessage = "signal: terminated"

View File

@@ -41,7 +41,7 @@ func NewDoltgresBenchmarker(dir string, config SysbenchConfig, serverConfig Serv
}
func (b *doltgresBenchmarkerImpl) checkInstallation(ctx context.Context) error {
version := ExecCommand(ctx, b.serverConfig.GetServerExec(), doltVersionCommand)
version := ExecCommand(ctx, b.serverConfig.GetServerExec(), doltgresVersionCommand)
return version.Run()
}