From 8c1a1fc6335ba2c1ea429b97e3696ce29453f910 Mon Sep 17 00:00:00 2001 From: Peter Svensson Date: Tue, 13 Feb 2024 11:05:35 +0100 Subject: [PATCH] chore: naming for anonymous functions changed --- request_response_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_response_test.go b/request_response_test.go index 275e7ed..1a48564 100644 --- a/request_response_test.go +++ b/request_response_test.go @@ -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)