Skip to content

Commit 4e723c7

Browse files
authored
Fix typos (#249)
1 parent d420c97 commit 4e723c7

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

integration_test/cases/prepare_stream_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ defmodule PrepareStreamTest do
137137
{:ok, :state},
138138
{:ok, :began, :new_state},
139139
{:error, err, :newer_state},
140-
{:ok, :comitted, :newest_state}
140+
{:ok, :committed, :newest_state}
141141
]
142142
{:ok, agent} = A.start_link(stack)
143143

@@ -173,7 +173,7 @@ defmodule PrepareStreamTest do
173173
{:ok, :began, :new_state},
174174
{:ok, %Q{}, :newer_state},
175175
{:error, err, :newest_state},
176-
{:ok, :comitted, :state2}
176+
{:ok, :committed, :state2}
177177
]
178178
{:ok, agent} = A.start_link(stack)
179179

integration_test/cases/stream_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ defmodule StreamTest do
1616
{:cont, %R{}, :newest_state},
1717
{:halt, %R{}, :state2},
1818
{:ok, :deallocated, :new_state2},
19-
{:ok, :commited, :newer_state2}
19+
{:ok, :committed, :newer_state2}
2020
]
2121
{:ok, agent} = A.start_link(stack)
2222

@@ -181,7 +181,7 @@ defmodule StreamTest do
181181
{:ok, :state},
182182
{:ok, :began, :new_state},
183183
{:error, err, :newer_state},
184-
{:ok, :comitted, :newest_state}
184+
{:ok, :committed, :newest_state}
185185
]
186186
{:ok, agent} = A.start_link(stack)
187187

@@ -465,7 +465,7 @@ defmodule StreamTest do
465465
{:ok, %Q{}, %C{}, :newer_state},
466466
{:halt, %R{}, :newest_state},
467467
{:ok, :deallocated, :state2},
468-
{:ok, :commited, :new_state2}
468+
{:ok, :committed, :new_state2}
469469
]
470470
{:ok, agent} = A.start_link(stack)
471471

integration_test/cases/transaction_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule TransactionTest do
88
stack = [
99
{:ok, :state},
1010
{:ok, :began, :new_state},
11-
{:ok, :comitted, :newer_state},
11+
{:ok, :committed, :newer_state},
1212
{:ok, :began, :newest_state},
1313
{:ok, :committed, :newest_state}
1414
]
@@ -1069,7 +1069,7 @@ defmodule TransactionTest do
10691069
stack = [
10701070
{:ok, :state},
10711071
{:ok, :began, :new_state},
1072-
{:ok, :comitted, :newer_state},
1072+
{:ok, :committed, :newer_state},
10731073
{:ok, :began, :newest_state},
10741074
{:ok, :committed, :newest_state}
10751075
]

lib/db_connection/connection.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule DBConnection.ConnectionError do
33

44
@moduledoc """
55
The raised exception might include the reason which would be useful
6-
to programatically determine what was causing the error.
6+
to programmatically determine what was causing the error.
77
"""
88

99
@doc false

test/db_connection/backoff_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule DBConnection.BackoffTest do
77
@moduletag backoff_max: 30_000
88

99
@tag backoff_type: :exp
10-
test "exponential backoffs aways in [min, max]", context do
10+
test "exponential backoffs always in [min, max]", context do
1111
backoff = new(context)
1212
{delays, _} = backoff(backoff, 20)
1313

@@ -39,7 +39,7 @@ defmodule DBConnection.BackoffTest do
3939
end
4040

4141
@tag backoff_type: :rand
42-
test "random backoffs aways in [min, max]", context do
42+
test "random backoffs always in [min, max]", context do
4343
backoff = new(context)
4444
{delays, _} = backoff(backoff, 20)
4545

@@ -57,7 +57,7 @@ defmodule DBConnection.BackoffTest do
5757
end
5858

5959
@tag backoff_type: :rand_exp
60-
test "random exponential backoffs aways in [min, max]", context do
60+
test "random exponential backoffs always in [min, max]", context do
6161
backoff = new(context)
6262
{delays, _} = backoff(backoff, 20)
6363

0 commit comments

Comments
 (0)