Commit a2fea6a
committed
Improve TestFlyDeployHAPlacement error logging
The test was failing with 'Condition never satisfied' but we couldn't see
what the actual error was. This makes debugging impossible.
Changes:
- Capture the last error message so it appears in test output
- Use t.Logf to log errors during retries instead of silently failing
- Show the last error in the EventuallyWithT failure message
- Use assert.Fail instead of f.Fatalf for unexpected errors so we see them
This will help us understand whether:
- The error message is different than expected
- There's a different error we should handle
- The retry logic is working correctly1 parent 3173ddf commit a2fea6a
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | | - | |
105 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
0 commit comments