         self.fail()
       } catch Errno.interrupted {
         // Success!
-        self.expectEqual(mocking.trace.dequeue(), self.expected)
+        self.expectEqual(self.expected, mocking.trace.dequeue())
       } catch {
         self.fail()
       }

      // Test our API mappings to the lower-level syscall invocation
      do {
        try body(true)
        self.expectEqual(mocking.trace.dequeue(), self.expected)
      } catch {
        self.fail()
      }

}
extension TestCase {
  func expectEqualSequence<S1: Sequence, S2: Sequence>(
    _ expected: S1, _ actual: S2,
    _ message: String? = nil
  ) where S1.Element: Equatable, S1.Element == S2.Element {
    if !actual.elementsEqual(expected) {
