Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: simplify MySQL code snippet in docs #984

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/modules/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ go get github.com/testcontainers/testcontainers-go/modules/mysql

## Usage example

<!--codeinclude-->
[Creating a MySQL container](../../modules/mysql/mysql.go)
<!--codeinclude-->
[Creating a MySQL container](../../modules/mysql/mysql_test.go) inside_block:createMysqlContainer
<!--/codeinclude-->

## Module Reference
Expand Down
2 changes: 2 additions & 0 deletions modules/mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ import (
func TestMySQL(t *testing.T) {
ctx := context.Background()

// createMysqlContainer {
container, err := StartContainer(ctx)
if err != nil {
t.Fatal(err)
}
// }

// Clean up the container after the test is complete
t.Cleanup(func() {
Expand Down