Commit 933f12b
authored
testing: fix flake in Agent.Host RPC handler test (#26911)
When a client switches servers, there may be a brief window where the original
server still thinks it's connected. In the `TestAgentHost_Server` test, if the
client gets a RPC error then it'll retry the other server and the total count
will be 2 instead of 1 within the window of the test. Fix this so that we're
just detecting that the node connected at all, and tidy up test setup and
assertions.1 parent b50dbb8 commit 933f12b
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
844 | 843 | | |
845 | | - | |
846 | | - | |
847 | 844 | | |
848 | 845 | | |
849 | 846 | | |
| |||
868 | 865 | | |
869 | 866 | | |
870 | 867 | | |
871 | | - | |
| 868 | + | |
872 | 869 | | |
873 | | - | |
| 870 | + | |
874 | 871 | | |
875 | 872 | | |
876 | 873 | | |
| |||
940 | 937 | | |
941 | 938 | | |
942 | 939 | | |
943 | | - | |
| 940 | + | |
944 | 941 | | |
945 | | - | |
946 | | - | |
| 942 | + | |
| 943 | + | |
947 | 944 | | |
948 | 945 | | |
949 | | - | |
| 946 | + | |
| 947 | + | |
950 | 948 | | |
951 | 949 | | |
952 | 950 | | |
| |||
0 commit comments