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:
Travis Nielsen authored and GitHub committed 2019-03-14 13:19:29 -06:00
commit 6d3f7ab633
1 file changed
+1 -1
+1 -1
View File
@@ -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