Skip to content

Commit a1baef2

Browse files
committed
fix lint
1 parent 7015fff commit a1baef2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

module/executiondatasync/optimistic_sync/pipeline_test_utils.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,3 @@ func synctestWaitForStateUpdates(t *testing.T, updateChan <-chan State, expected
129129
assert.Equalf(t, expected, update, "expected pipeline to transition to %s, but got %s", expected, update)
130130
}
131131
}
132-
133-
// synctestWaitForError waits for an error from the errChan using synctest.Wait and asserts it matches the expected error.
134-
// TODO: refactor all tests to use the synctest approach.
135-
func synctestWaitForError(t *testing.T, errChan <-chan error, expectedErr error) {
136-
synctest.Wait()
137-
err := <-errChan
138-
if expectedErr == nil {
139-
assert.NoError(t, err, "Pipeline should complete without errors")
140-
} else {
141-
assert.ErrorIs(t, err, expectedErr)
142-
}
143-
144-
}

0 commit comments

Comments
 (0)