Skip to content

Commit c4fd1f2

Browse files
authored
Apply suggestions from code review
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
1 parent 46e4c4b commit c4fd1f2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

docs/modules/k6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Testcontainers module for [k6](https://registry.hub.docker.com/r/grafana/k6).
1111

1212
## Basic script execution
1313

14-
The following example shows a typical JUnit 5 test that runs a k6 script inside a container, waits for the run to finish, and asserts on the output.
14+
You can start a K6 container instance from any Java application by using:
1515

1616
<!--codeinclude-->
17-
[Running a k6 script in a JUnit test](../../modules/k6/src/test/java/org/testcontainers/k6/K6ContainerTests.java) inside_block:standard_k6_test
17+
[Setup the container](../../modules/k6/src/test/java/org/testcontainers/k6/K6ContainerTests.java) inside_block:standard_k6_test
1818
<!--/codeinclude-->
1919

2020
The test above uses a simple k6 script, `test.js`, with command line options and an injected script variable.

modules/k6/src/test/java/org/testcontainers/k6/K6ContainerTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class K6ContainerTests {
1212

1313
@Test
1414
void k6StandardTest() throws Exception {
15-
// standard_k6_test {
1615
try (
1716
// standard_k6 {
1817
K6Container container = new K6Container("grafana/k6:0.49.0")
@@ -38,6 +37,5 @@ void k6StandardTest() throws Exception {
3837

3938
assertThat(container.getLogs()).contains("k6 tests are cool!");
4039
}
41-
// }
4240
}
4341
}

0 commit comments

Comments
 (0)