title: Assert that code gets ran at some point in unit test?
body: <p>I have this unit test:</p>
  
  <pre><code>func testState() {
      searchController.filter.query = "Missouri"
      searchController.resultsSignal.subscribePast(with: self) { sections in
  
          if sections.count &lt; 1 { return }
          // Want to test that code at least gets to here at some point
          ...
      }
  }
  </code></pre>
  
  <p>And I want to make sure that I at least get past the line <code>if sections.count &lt; 1 { return }</code> at some point.</p>
  
  <p>Since it is getting ran when a signal is fired, I don't care if there is a different signal that gets fired at some point, but I do want to make sure that sections.count > 0 at some point in the test.</p>
  
  <p>Is there a way to do this? I was thinking of using a boolean and initializing it to false then setting it to true if <code>sections.count</code> was ever more than one, and asserting that the value was true, but this doesn't work unless I do a delay since I am using signals. Thanks.</p>