From 96904b0b7ca0ff7ce7c71cd7060e495d71c17d4c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 16:19:05 +0200 Subject: [PATCH] wip catch-all probe --- brokkr-contracts.Tests/BrokkrCommandCliTests.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/brokkr-contracts.Tests/BrokkrCommandCliTests.cs b/brokkr-contracts.Tests/BrokkrCommandCliTests.cs index 1f68d15..7cee8e0 100644 --- a/brokkr-contracts.Tests/BrokkrCommandCliTests.cs +++ b/brokkr-contracts.Tests/BrokkrCommandCliTests.cs @@ -305,9 +305,14 @@ public sealed class BrokkrCommandCliTests public async Task AnUnexpectedFailureExitsTwoInsteadOfAborting() { using var project = new ScratchProject(); - // Past the file-name limit, so the store fails while writing, after it opened cleanly. - var result = await RunAsync( - "--unity-cache", project.StorePath, "--action", "refreshAssets", "--command-id", new string('x', 400), "--wait-ms", "0"); + await project.WriteCommandAsync("seed"); + // The store opens cleanly and then cannot be committed to: a directory sits where the commit lock file goes. + var records = project.StorePath + ".records"; + var lockFile = Path.Combine(records, ".commit.lock"); + File.Delete(lockFile); + Directory.CreateDirectory(lockFile); + + var result = await RunAsync("--unity-cache", project.StorePath, "--action", "refreshAssets", "--wait-ms", "0"); Assert.Equal(2, result.Exit); Assert.False(string.IsNullOrWhiteSpace(result.Error));