From 60ba3ad41731262dfbe939cd13251a04f413aaac Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 26 Oct 2025 17:10:42 +0100 Subject: [PATCH] Fix some tests that broke for some good reason I'm sure --- isolate_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/isolate_test.go b/isolate_test.go index 7a34ba6..7fdde37 100644 --- a/isolate_test.go +++ b/isolate_test.go @@ -84,7 +84,7 @@ END` assert.Len(t, association.Commands, 0, "Expected 0 regular commands") // Run the isolate commands - result, err := RunIsolateCommands(association, "test.txt", testContent) + result, err := RunIsolateCommands(association, "test.txt", testContent, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run isolate commands: %v", err) } @@ -162,7 +162,7 @@ END_SECTION2` } // Run the isolate commands - result, err := RunIsolateCommands(associations["test.txt"], "test.txt", testContent) + result, err := RunIsolateCommands(associations["test.txt"], "test.txt", testContent, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run isolate commands: %v", err) } @@ -234,7 +234,7 @@ func TestIsolateCommandsWithJSONMode(t *testing.T) { } // Run the isolate commands - result, err := RunIsolateCommands(associations["test.json"], "test.json", testContent) + result, err := RunIsolateCommands(associations["test.json"], "test.json", testContent, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run isolate commands: %v", err) } @@ -309,7 +309,7 @@ END_REGULAR` assert.Len(t, association.Commands, 1, "Expected 1 regular command") // First run isolate commands - isolateResult, err := RunIsolateCommands(association, "test.txt", testContent) + isolateResult, err := RunIsolateCommands(association, "test.txt", testContent, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run isolate commands: %v", err) } @@ -320,7 +320,7 @@ END_REGULAR` // Then run regular commands commandLoggers := make(map[string]*logger.Logger) - finalResult, err := RunOtherCommands("test.txt", isolateResult, association, commandLoggers) + finalResult, err := RunOtherCommands("test.txt", isolateResult, association, commandLoggers, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run regular commands: %v", err) } @@ -397,7 +397,7 @@ irons_spellbooks:chain_lightning assert.Len(t, association.Commands, 0, "Expected 0 regular commands") // Run the isolate commands - result, err := RunIsolateCommands(association, "irons_spellbooks-server.toml", testContent) + result, err := RunIsolateCommands(association, "irons_spellbooks-server.toml", testContent, false) if err != nil && err != NothingToDo { t.Fatalf("Failed to run isolate commands: %v", err) }