diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-29 12:23:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-29 12:23:20 +0300 |
| commit | aa7e7afebf2bb65fb5a86183bd1f7190d6502b4d (patch) | |
| tree | 967c4570a181a0ac9904e3906ebb3a685ef02539 /integrationtests | |
| parent | 0aa3222cef46d527bb9437afa9ddd90f3a80a9d8 (diff) | |
fix: resolve dcat test failures with channel-less implementation
- Fix serverless mode extra blank lines by removing DTail 3 backward
compatibility fallthrough for '\n' character
- Fix empty line handling in client message processing
- Update integration test framework to inherit environment variables,
allowing turbo boost testing
- Clean up debug logging code
Note: dcat1d.txt test fails because DTail adds newline to files without
trailing newlines - this is a protocol limitation where newlines are
stripped during transmission and re-added by the client.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'integrationtests')
| -rw-r--r-- | integrationtests/commandutils.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/integrationtests/commandutils.go b/integrationtests/commandutils.go index 763e76f..fd63b5d 100644 --- a/integrationtests/commandutils.go +++ b/integrationtests/commandutils.go @@ -77,9 +77,10 @@ func startCommandWithEnv(ctx context.Context, t *testing.T, inPipeFile, t.Log(cmdStr, strings.Join(args, " ")) cmd := exec.CommandContext(ctx, cmdStr, args...) - // Set environment variables if provided + // Always inherit environment variables + cmd.Env = os.Environ() + // Add any additional environment variables if provided if env != nil { - cmd.Env = os.Environ() for k, v := range env { cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", k, v)) } |
