Skip to content

Commit

Permalink
chore: naming for anonymous functions changed
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson committed Feb 13, 2024
1 parent 93709b3 commit 8c1a1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Test_RequestResponseHandler(t *testing.T) {

require.Len(t, *conn.queueConsumers, 1)
handler, _ := conn.queueConsumers.get("svc.direct.exchange.request.queue", "key")
require.Equal(t, "github.com/sparetimecoders/goamqp.ServiceRequestConsumer[...].func1", runtime.FuncForPC(reflect.ValueOf(handler).Pointer()).Name())
require.Equal(t, "github.com/sparetimecoders/goamqp.ServiceRequestConsumer[...].1", runtime.FuncForPC(reflect.ValueOf(handler).Pointer()).Name())
missing, exists := conn.queueConsumers.get("miggins", "key")
require.Nil(t, missing)
require.False(t, exists)
Expand Down

0 comments on commit 8c1a1fc

Please sign in to comment.