File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ import (
18
18
)
19
19
20
20
func TestBareConfigure (t * testing.T ) {
21
- oldErr := Err
22
- defer func () {
23
- Err = oldErr
24
- }()
25
-
26
- var buf bytes.Buffer
27
- Err = & buf
28
-
29
21
flags := pflag .NewFlagSet ("fake" , pflag .PanicOnError )
30
22
setupConfigureFlags (flags )
31
23
@@ -150,17 +142,12 @@ func TestConfigureToken(t *testing.T) {
150
142
defer ts .Close ()
151
143
152
144
oldOut := Out
153
- oldErr := Err
154
145
Out = ioutil .Discard
155
146
defer func () {
156
147
Out = oldOut
157
- Err = oldErr
158
148
}()
159
149
160
150
for _ , tc := range testCases {
161
- var buf bytes.Buffer
162
- Err = & buf
163
-
164
151
flags := pflag .NewFlagSet ("fake" , pflag .PanicOnError )
165
152
setupConfigureFlags (flags )
166
153
@@ -238,17 +225,12 @@ func TestConfigureAPIBaseURL(t *testing.T) {
238
225
}
239
226
240
227
oldOut := Out
241
- oldErr := Err
242
228
Out = ioutil .Discard
243
229
defer func () {
244
230
Out = oldOut
245
- Err = oldErr
246
231
}()
247
232
248
233
for _ , tc := range testCases {
249
- var buf bytes.Buffer
250
- Err = & buf
251
-
252
234
flags := pflag .NewFlagSet ("fake" , pflag .PanicOnError )
253
235
setupConfigureFlags (flags )
254
236
You can’t perform that action at this time.
0 commit comments