diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-12 17:33:14 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-12 17:33:14 -0600 |
| commit | b83870b98562a1eb9d4377dffc2283706ad574f3 (patch) | |
| tree | 15c5285c39f3880e2e68f3621a6ba9bfb22694df /test/integration/log_consumer.go | |
| parent | 32e212fb891d522efa4990bc525a51326bd7e4ba (diff) | |
test: split integration test into separate files
Diffstat (limited to 'test/integration/log_consumer.go')
| -rw-r--r-- | test/integration/log_consumer.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/integration/log_consumer.go b/test/integration/log_consumer.go new file mode 100644 index 0000000..4af438f --- /dev/null +++ b/test/integration/log_consumer.go @@ -0,0 +1,16 @@ +package test + +import ( + "testing" + + "github.com/testcontainers/testcontainers-go" +) + +type LogConsumer struct { + t *testing.T +} + +func (lc *LogConsumer) Accept(l testcontainers.Log) { + content := string(l.Content) + lc.t.Logf("%s", content) +} |
