Skip to content

Commit 09cb0f9

Browse files
peczenyjZerpet
authored andcommitted
complete add missing t.Helper()
1 parent 8e59758 commit 09cb0f9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

client_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ func amqplainConfig() Config {
5050
}
5151

5252
func newServer(t *testing.T, serverIO, clientIO io.ReadWriteCloser) *server {
53+
t.Helper()
54+
5355
return &server{
5456
T: t,
5557
r: reader{serverIO},
@@ -60,6 +62,8 @@ func newServer(t *testing.T, serverIO, clientIO io.ReadWriteCloser) *server {
6062
}
6163

6264
func newSession(t *testing.T) (io.ReadWriteCloser, *server) {
65+
t.Helper()
66+
6367
rs, wc := io.Pipe()
6468
rc, ws := io.Pipe()
6569

connection_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@ func TestConnection_Close_WhenMemoryAlarmIsActive(t *testing.T) {
375375
}
376376

377377
func rabbitmqctl(t *testing.T, args ...string) error {
378+
t.Helper()
379+
378380
rabbitmqctlPath, found := os.LookupEnv(rabbitmqctlEnvKey)
379381
if !found {
380382
t.Skipf("variable for %s for rabbitmqctl not found, skipping", rabbitmqctlEnvKey)

0 commit comments

Comments
 (0)