ssh/test: use t.Run for MAC/kex/pubkey tests
@@ -384,6 +384,7 @@ func TestMACs(t *testing.T) {
macOrder := config.MACs
for _, mac := range macOrder {
+ t.Run(mac, func(t *testing.T) {
server := newServer(t)
defer server.Shutdown()
conf := clientConfig()
@@ -395,6 +396,7 @@ func TestMACs(t *testing.T) {
} else {
t.Fatalf("failed for MAC %q", mac)
}
+ })
}
}
@@ -403,6 +405,7 @@ func TestKeyExchanges(t *testing.T) {
config.SetDefaults()
kexOrder := config.KeyExchanges
for _, kex := range kexOrder {
+ t.Run(kex, func(t *testing.T) {
server := newServer(t)
defer server.Shutdown()
conf := clientConfig()
@@ -414,6 +417,7 @@ func TestKeyExchanges(t *testing.T) {
} else {
t.Errorf("failed for kex %q", kex)
}
+ })
}
}
@@ -424,6 +428,7 @@ func TestClientAuthAlgorithms(t *testing.T) {
"ecdsa",
"ed25519",
} {
+ t.Run(key, func(t *testing.T) {
server := newServer(t)
conf := clientConfig()
conf.SetDefaults()
@@ -439,5 +444,6 @@ func TestClientAuthAlgorithms(t *testing.T) {
}
server.Shutdown()
+ })
}
}
