]> git.giacomolli.uk - onechat/blobdiff - memory_test.go
Separate multiline Go statements
[onechat] / memory_test.go
index 6713f6dab219d83d0139ec8cc3656bc19f0cba42..f317b0af555cf1ddc5b80d04d11e27f513a1dcaf 100644 (file)
@@ -143,6 +143,7 @@ func TestMemoryRunsAtMostEightBuilds(t *testing.T) {
        slices.SortFunc(running, func(a, b NodeKey) int {
                return a.index - b.index
        })
        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 {
        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",
                },
        }
                        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 {
        for _, tc := range testCases {
                t.Run(tc.name, func(t *testing.T) {
                        _, err := memory.AppendOnce("user", "Other text.", &tc.id, func(int) error {