X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80e348724041a694002fc38f57e8868b9b9a2be9..c781f79f3c8cb9a7577ee1574d196988da2719b3:/memory_test.go diff --git a/memory_test.go b/memory_test.go index 6713f6d..f317b0a 100644 --- a/memory_test.go +++ b/memory_test.go @@ -143,6 +143,7 @@ func TestMemoryRunsAtMostEightBuilds(t *testing.T) { slices.SortFunc(running, func(a, b NodeKey) int { return a.index - b.index }) + require.Equal(t, []NodeKey{{0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}}, running) require.Eventually(t, func() bool { @@ -497,6 +498,7 @@ func TestQueuedAppendRefusesAnInvalidReceipt(t *testing.T) { cause: "read queued message", }, } + for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { _, err := memory.AppendOnce("user", "Other text.", &tc.id, func(int) error {