Skip to content

Commit

Permalink
Merge pull request #6081 from planetscale/test-wordpress-install
Browse files Browse the repository at this point in the history
Add sql_mode to cnf so wordpress can create tables
  • Loading branch information
systay authored Apr 18, 2020
2 parents 5a34157 + 2fdb4d7 commit e346ba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/test/endtoend/apps/wordpress/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ var (

func TestMain(m *testing.M) {
flag.Parse()
current, err := os.Getwd()
if err != nil {
panic(err)
}

path := current + "/wordpress.cnf"
os.Setenv("EXTRA_MY_CNF", path)
exitCode := func() int {
clusterInstance = cluster.NewCluster(Cell, "localhost")
defer clusterInstance.Teardown()
Expand Down
1 change: 1 addition & 0 deletions go/test/endtoend/apps/wordpress/wordpress.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sql_mode = NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

0 comments on commit e346ba8

Please sign in to comment.