Merge pull request #2823 from nakabonne/cockroach-installation
Add 'if not exists' to the command that creates a test database/table
This commit is contained in:
1 file changed
+1
-1
@@ -117,7 +117,7 @@ func (suite *CockroachDBSuite) TestCockroachDBClusterInstallation() {
|
||||
command := "/cockroach/cockroach"
|
||||
commandArgs := []string{
|
||||
"sql", "--insecure", fmt.Sprintf("--host=cockroachdb-public.%s", suite.namespace), "-e",
|
||||
`create database rookcockroachdb; use rookcockroachdb; create table testtable ( testID int ); insert into testtable values (123456789); select * from testtable;`,
|
||||
`create database if not exists rookcockroachdb; use rookcockroachdb; create table if not exists testtable ( testID int ); insert into testtable values (123456789); select * from testtable;`,
|
||||
}
|
||||
|
||||
inc := 0
|
||||
|
||||
Reference in new issue
Block a user