1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

chore: fix more capitalization style warnings (#487)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2024-02-15 18:31:43 -08:00
committed by GitHub
parent baa2dbd3a1
commit ea585c4851
12 changed files with 60 additions and 60 deletions

View File

@@ -47,13 +47,13 @@ func TestAsyncBrokerEmitCallsMultipleListeners(t *testing.T) {
want := "hi"
broker.Emit(&want)
first_got, err := first()
firstGot, err := first()
require.NoError(t, err)
assert.Equal(t, want, *first_got)
assert.Equal(t, want, *firstGot)
second_got, err := second()
secondGot, err := second()
require.NoError(t, err)
assert.Equal(t, want, *second_got)
assert.Equal(t, want, *secondGot)
}
func TestAsyncBrokerAddingDuplicateNameReplacesPrevious(t *testing.T) {
@@ -66,13 +66,13 @@ func TestAsyncBrokerAddingDuplicateNameReplacesPrevious(t *testing.T) {
want := "hi"
broker.Emit(&want)
first_got, err := first()
firstGot, err := first()
require.Error(t, err)
assert.Nil(t, first_got)
assert.Nil(t, firstGot)
second_got, err := second()
secondGot, err := second()
require.NoError(t, err)
assert.Equal(t, want, *second_got)
assert.Equal(t, want, *secondGot)
}
func TestAsyncBrokerRemovingListenerSuccessful(t *testing.T) {
@@ -86,13 +86,13 @@ func TestAsyncBrokerRemovingListenerSuccessful(t *testing.T) {
want := "hi"
broker.Emit(&want)
first_got, err := first()
firstGot, err := first()
require.Error(t, err)
assert.Nil(t, first_got)
assert.Nil(t, firstGot)
second_got, err := second()
secondGot, err := second()
require.NoError(t, err)
assert.Equal(t, want, *second_got)
assert.Equal(t, want, *secondGot)
}
func TestAsyncBrokerRemovingMissingListener(t *testing.T) {