@@ -44,8 +44,6 @@ type AsyncBufferedReader(_output: ITestOutputHelper, data, blockSize) =
4444 let! bytesRead = buffered.ReadAsync( mem, 0 , mem.Length) // offset refers to offset in target buffer, not source
4545 lastPos <- buffered.Position
4646
47- let x : seq < Guid > = seq { 1 } |> Seq.cast
48-
4947 if bytesRead > 0 then
5048 current <- ValueSome mem
5149 return true
@@ -102,11 +100,14 @@ type ``Real world tests``(output: ITestOutputHelper) =
102100
103101 [<Fact( Skip = " Broken test, faulty streaming test-implementation" ) >]
104102 let ``Reading a 10MB buffered IAsync stream from start to finish`` () = task {
103+ // TODO: fix this test Remove underscores of the vars and rerun the test with
104+ // all lined uncommented
105105 let mutable count = 0
106- use reader = AsyncBufferedReader( output, Array.init 2048 byte, 256 )
106+ use reader = new AsyncBufferedReader( output, Array.init 2048 byte, 256 )
107107 let expected = Array.init 256 byte
108108
109- let ts = taskSeq {
109+ // TODO: use this
110+ let _ts = taskSeq {
110111 for data in reader do
111112 do count <- count + 1
112113
@@ -116,7 +117,7 @@ type ``Real world tests``(output: ITestOutputHelper) =
116117 yield data
117118 }
118119
119- // the following is extremely slow, which is why we just use F#'s comparison instead
120+ // the following is extremely slow in XUnit/FsUnit , which is why we just use F#'s comparison instead
120121 // Using this takes 67s, compared to 0.25s using normal F# comparison.
121122 // reader |> TaskSeq.toArray |> should equal expected // VERY SLOW!!
122123
0 commit comments