Skip to content

Commit

Permalink
Merge pull request #2 from stevana/dev
Browse files Browse the repository at this point in the history
fix(part4): typo and improve a sentence
  • Loading branch information
stevana authored Feb 10, 2023
2 parents 921d7cb + f2b9063 commit 65fbef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/Part04FaultInjection.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ data Fault = Full | Empty | ReadFail IOException | ReadSlow
deriving stock Show
```

We can now create a wrapper around our fake queue which inserts the right failure points depending which fault is injected. Note that a fault is only active in until its triggered.
We can now create a wrapper around our fake queue which inserts the right failure points depending which fault is injected. Note that a fault is only active until triggered (and then removed with `removeFault`).

``` haskell
faultyFakeQueue :: Int -> IO (FaultyFakeQueue a)
Expand Down Expand Up @@ -409,7 +409,7 @@ withRealQueueService io = do
withService NoBug queue (io mgr)
```

Finally we can write our sequential integratin tests with a fake and possibly faulty queue.
Finally we can write our sequential integration tests with a fake and possibly faulty queue.

``` haskell
unit_seqIntegrationTests :: Bug -> IO ()
Expand Down
4 changes: 2 additions & 2 deletions src/Part04FaultInjection.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ implementation bug perhaps), and slow read (simulating a GC or I/O pause).

We can now create a wrapper around our fake queue which inserts the right
failure points depending which fault is injected. Note that a fault is only
active in until it's triggered.
active until triggered (and then removed with `removeFault`).

> faultyFakeQueue :: Int -> IO (FaultyFakeQueue a)
> faultyFakeQueue size = do
Expand Down Expand Up @@ -420,7 +420,7 @@ fake one with faults for a "testing" deployment.
> mgr <- newManager defaultManagerSettings
> withService NoBug queue (io mgr)

Finally we can write our sequential integratin tests with a fake and possibly
Finally we can write our sequential integration tests with a fake and possibly
faulty queue.

> unit_seqIntegrationTests :: Bug -> IO ()
Expand Down

0 comments on commit 65fbef0

Please sign in to comment.