Commit c36bf77
committed
fix: use getBaseURL in acc_test.go to match provider URL parsing
acc_test.go was parsing GITHUB_BASE_URL with url.Parse() directly,
bypassing the normalization done by getBaseURL() in the provider. This
caused the test base URL to differ from what the provider produces
(e.g. missing trailing slash, no github.com → api.github.com rewrite,
no ghe.com API host prefix). Additionally, IsGHES was never set on the
test Config, so GHES-specific behavior was not exercised in tests.1 parent 1af72d4 commit c36bf77
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
113 | 109 | | |
114 | 110 | | |
115 | 111 | | |
| 112 | + | |
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
| |||
194 | 191 | | |
195 | 192 | | |
196 | 193 | | |
| 194 | + | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
| |||
0 commit comments