0
我試圖驗證兩個條件中最終阻止......像這樣我可以驗證scalatest內部的兩個條件最終阻止嗎?
eventually(timeout(Span(26, Seconds)), interval(Span(2, Seconds))) {
response = executeSomeFunction
response should be = (true)
if (response) {
something = responseResult.get
something should be >= (10)
}
}
什麼找的是最終要滿足這兩個條件。首先它應該檢查響應是否爲真,然後當響應爲true
時,它應該驗證if循環內部的條件。 我試圖執行這一點,但我得到錯誤信息
曖昧參考超載定義」引用排隊 ‘的反應應該是=(真)’
我不知道什麼,我試圖做甚至有可能最終裏面還是不。