From e7fd7ac47e7c31ce90dbe14e58e088c5a212ab02 Mon Sep 17 00:00:00 2001 From: Ryo Nakao Date: Thu, 14 Mar 2019 17:55:39 +0900 Subject: [PATCH] Add 'if not exists' to the command that creates a test database/table Signed-off-by: Ryo Nakao --- tests/integration/cockroachdb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/cockroachdb_test.go b/tests/integration/cockroachdb_test.go index c287a5229..901242349 100644 --- a/tests/integration/cockroachdb_test.go +++ b/tests/integration/cockroachdb_test.go @@ -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