summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-04 22:01:28 +0200
committerPaul Buetow <paul@buetow.org>2026-03-04 22:01:28 +0200
commit8b7116421dc30ddef2d8426f825cc7f50f3f0ccd (patch)
tree34167ef2eabcbfbfc8a5a913639d6cc5f2f9450b /integrationtests
parent9b147c4e49b8a6a378da6728cc74d9453ad2501f (diff)
fix: correct break/select flow and remove unreachable code (task 338)
Diffstat (limited to 'integrationtests')
-rw-r--r--integrationtests/dtail_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/integrationtests/dtail_test.go b/integrationtests/dtail_test.go
index 2e9da5b..cfa96c8 100644
--- a/integrationtests/dtail_test.go
+++ b/integrationtests/dtail_test.go
@@ -15,7 +15,7 @@ func TestDTailWithServer(t *testing.T) {
testLogger := NewTestLogger("TestDTailWithServer")
defer testLogger.WriteLogFile()
cleanupTmpFiles(t)
-
+
if !config.Env("DTAIL_INTEGRATION_TEST_RUN_MODE") {
t.Log("Skipping")
return
@@ -91,6 +91,7 @@ func TestDTailWithServer(t *testing.T) {
var greetingsRecv []string
+readLoop:
for len(greetingsRecv) < len(greetings) {
select {
case line := <-serverCh:
@@ -105,7 +106,7 @@ func TestDTailWithServer(t *testing.T) {
}
case <-ctx.Done():
t.Log("Done reading client and server pipes")
- break
+ break readLoop
}
}
@@ -157,7 +158,7 @@ func TestDTailColorTable(t *testing.T) {
func testDTailColorTableServerless(t *testing.T, logger *TestLogger) {
ctx := WithTestLogger(context.Background(), logger)
-
+
outFile := "dtailcolortable.stdout.tmp"
expectedOutFile := "dtailcolortable.expected"
@@ -199,7 +200,7 @@ func testDTailColorTableWithServer(t *testing.T, logger *TestLogger) {
// Give server time to start
time.Sleep(500 * time.Millisecond)
- _, err = runCommand(ctx, t, outFile, "../dtail",
+ _, err = runCommand(ctx, t, outFile, "../dtail",
"--colorTable",
"--servers", fmt.Sprintf("%s:%d", bindAddress, port),
"--trustAllHosts")