From 34a0198952167ca152a4e1186084cee30b0bafd5 Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Mon, 1 Jun 2026 04:40:05 -0500 Subject: [PATCH] Update test configuration to ensure deterministic failure for missing config - Modified the test case in `main_test.go` to use a directory path for the config argument, ensuring that the configuration initialization fails consistently during testing. --- cmd/scratchbox/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/scratchbox/main_test.go b/cmd/scratchbox/main_test.go index 5c3bc95..227d6af 100644 --- a/cmd/scratchbox/main_test.go +++ b/cmd/scratchbox/main_test.go @@ -233,7 +233,8 @@ func TestMainHelperProcess(t *testing.T) { main() os.Exit(0) case "bad-config": - os.Args = []string{"scratchbox", "server", "--config", "/no/such/config.yaml"} + // Use a directory path so config init fails deterministically. + os.Args = []string{"scratchbox", "server", "--config", "/"} main() os.Exit(0) case "missing-config-autogen":