Skip to content

Commit

Permalink
Delete disabled assertion (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
JensAyton authored Sep 1, 2021
1 parent b06ed67 commit 4a256c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
8 changes: 0 additions & 8 deletions MobiusExtras/Source/ConnectableClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ open class ConnectableClass<Input, Output>: Connectable {
lock.unlock()
}
guard let consumer = consumer else {
#if false // Disabled because of flakiness and because public use of this class is being phased out.
MobiusHooks.errorHandler(
"\(type(of: self)) is unable to send \(type(of: output)) before any consumer has been set." +
"Send should only be used once the Connectable has been properly connected.",
#file,
#line
)
#endif
return
}

Expand Down
14 changes: 0 additions & 14 deletions MobiusExtras/Test/ConnectableClassTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ class ConnectableTests: QuickSpec {
}

context("when attempting to send some data back to the loop") {
context("when the consumer is not set") {
var sut: SubclassedConnectableClass!
beforeEach {
sut = SubclassedConnectableClass()
}

xit("should cause a mobius error") {
let errorThrown = catchError {
sut.send("Some string")
}
expect(errorThrown).to(beTrue())
}
}

context("when the consumer is set") {
var sut: SubclassedConnectableClass!
var consumerReceivedData: String?
Expand Down

0 comments on commit 4a256c4

Please sign in to comment.