Skip to content

Commit

Permalink
Backport of fix test flake for RPC TLS enforcement test into release/…
Browse files Browse the repository at this point in the history
…1.4.x (#16203)

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core committed Feb 16, 2023
1 parent 7cc33ab commit 168d5c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomad/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ func TestRPC_TLS_Enforcement_RPC(t *testing.T) {
defer tlsHelper.cleanup()

standardRPCs := map[string]interface{}{
"Status.Ping": struct{}{},
"Status.Ping": &structs.GenericRequest{},
}

localServersOnlyRPCs := map[string]interface{}{
Expand Down Expand Up @@ -1377,6 +1377,7 @@ func newTLSTestHelper(t *testing.T) tlsTestHelper {
KeyFile: h.serverCert + ".key",
}
})
testutil.WaitForLeader(t, h.nonVerifyServer.RPC)

return h
}
Expand Down

0 comments on commit 168d5c7

Please sign in to comment.